24 references to FindTokenFromText
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (10)
Compilation\SemanticModelAPITests.vb (2)
117Dim node2 = CompilationUtils.FindTokenFromText(tree, "c2").Parent 157Dim node2 = CompilationUtils.FindTokenFromText(tree, "c2").Parent
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (6)
755Dim node = CompilationUtils.FindTokenFromText(tree, stringInDecl).Parent 909Dim node = CompilationUtils.FindTokenFromText(tree, stringInDecl).Parent 1165Dim node = CompilationUtils.FindTokenFromText(tree, stringInDecl).Parent 1181Dim node = CompilationUtils.FindTokenFromText(tree, stringInDecl).Parent 1786Dim node = CompilationUtils.FindTokenFromText(tree, stringInDecl).Parent 1899Dim node = CompilationUtils.FindTokenFromText(tree, stringInDecl).Parent
Semantics\GetSemanticInfoTests.vb (1)
4427Dim node = CompilationUtils.FindTokenFromText(tree, stringInDecl).Parent
Semantics\VariableTypeInference.vb (1)
703Dim node = CompilationUtils.FindTokenFromText(tree, textToFind).Parent
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (9)
SymbolsTests\Source\BindingsTests.vb (9)
466Dim importSystemCollectionsTypeSyntax = FindTypeSyntax(CompilationUtils.FindTokenFromText(treeA, "System.Collections")) 475Dim importsOrangeTypeSyntax = FindTypeSyntax(CompilationUtils.FindTokenFromText(treeA, "N2.Orange")) 486Dim importsYellowTypeSyntax = FindTypeSyntax(CompilationUtils.FindTokenFromText(treeA, "yellow%")) 496Dim interfaceIAmbigTypeSyntax = FindTypeSyntax(CompilationUtils.FindTokenFromText(treeA, "N2.IAmbig")) 515Dim classYellowTypeSyntax = FindTypeSyntax(CompilationUtils.FindTokenFromText(treeA, "Yellow")) 528Dim elvisTypeSyntax = FindTypeSyntax(CompilationUtils.FindTokenFromText(treeA, "Elvis")) 537Dim iEnumSyntax = FindTypeSyntax(CompilationUtils.FindTokenFromText(treeA, "Generic.IEnumerable(Of TParam2)")) 572Dim bSyntax = FindTypeSyntax(CompilationUtils.FindTokenFromText(treeA, "B")) 607Dim baseSyntax = FindTypeSyntax(CompilationUtils.FindTokenFromText(treeA, "A(Of T)"))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (5)
CompilationTestUtils.vb (4)
661Return FindTokenFromText(tree, textToFind).Parent 1075Dim node = CompilationUtils.FindTokenFromText(tree, stringInDecl).Parent 1089Dim node = CompilationUtils.FindTokenFromText(tree, stringInDecl).Parent 1103Dim node = CompilationUtils.FindTokenFromText(tree, stringInDecl).Parent
SemanticModelTestBase.vb (1)
17Dim node = DirectCast(CompilationUtils.FindTokenFromText(tree, textToFind).Parent, VisualBasicSyntaxNode)