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