File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -950,8 +950,8 @@ public override async Task<CSharpSyntaxNode> VisitPropertyBlock(VBSyntax.Propert
950950 var firstVbSourceToken = node . GetFirstToken ( ) ;
951951 first = first . ReplaceToken ( firstCsConvertedToken , firstCsConvertedToken . WithSourceMappingFrom ( firstVbSourceToken ) ) ;
952952
953- _additionalDeclarations . TryGetValue ( node , out var members ) ;
954- var last = members ? . OfType < MethodDeclarationSyntax > ( ) . LastOrDefault ( ) ?? first ;
953+ var members = _additionalDeclarations [ node ] ;
954+ var last = members . OfType < MethodDeclarationSyntax > ( ) . LastOrDefault ( ) ?? first ;
955955 var lastIx = members . ToList ( ) . IndexOf ( last ) ;
956956 var lastIsFirst = lastIx < 0 ;
957957 var lastCsConvertedToken = last . GetLastToken ( ) ;
@@ -960,7 +960,7 @@ public override async Task<CSharpSyntaxNode> VisitPropertyBlock(VBSyntax.Propert
960960
961961 converted = lastIsFirst ? last : first ;
962962 if ( ! lastIsFirst ) {
963- members ! [ lastIx ] = last ;
963+ members [ lastIx ] = last ;
964964 }
965965 }
966966
You can’t perform that action at this time.
0 commit comments