File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
src/Compilers/VisualBasic/Test/Semantic Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -666,17 +666,14 @@ End Class
666666 Dim token = tree.GetCompilationUnitRoot().FindToken(position)
667667 Dim identifierName = token.Parent
668668
669- ' Get the symbol for the catch variable
670669 Dim localSymbol As ISymbol = model.GetSymbolInfo(identifierName).Symbol
671670 Assert.NotNull(localSymbol)
672671 Assert.Equal(SymbolKind.Local, localSymbol.Kind)
673672 Assert.Equal( "exc" , localSymbol.Name)
674673
675- ' Check that DeclaringSyntaxReferences returns a non-empty list
676674 Dim declaringRefs = localSymbol.DeclaringSyntaxReferences
677675 Assert.Equal( 1 , declaringRefs.Length)
678676
679- ' Verify the reference points to the IdentifierNameSyntax
680677 Dim declaredSyntax = declaringRefs( 0 ).GetSyntax()
681678 Assert.NotNull(declaredSyntax)
682679 Assert.IsType( Of IdentifierNameSyntax)(declaredSyntax)
You can’t perform that action at this time.
0 commit comments