81 references to ParseSyntaxTree
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (14)
Debugging\ProximityExpressionsGetterTests.vb (1)
41Return SyntaxFactory.ParseSyntaxTree(GetTestFileContent())
EditAndContinue\BreakpointSpansTests.vb (2)
43Dim tree = SyntaxFactory.ParseSyntaxTree(source) 73Dim tree = SyntaxFactory.ParseSyntaxTree(source)
EditAndContinue\Helpers\EditingTestBase.vb (2)
111Return SyntaxFactory.ParseSyntaxTree( 199Return New ActiveStatementsDescription(oldSource, newSource, Function(source) SyntaxFactory.ParseSyntaxTree(source, path:=GetDocumentFilePath(documentIndex)), flags)
EditAndContinue\SyntaxUtilitiesTests.vb (6)
14Dim oldRoot = SyntaxFactory.ParseSyntaxTree(oldSource).GetRoot() 15Dim newRoot = SyntaxFactory.ParseSyntaxTree(newSource).GetRoot() 56Dim leftRoot = SyntaxFactory.ParseSyntaxTree(" 68Dim rightRoot = SyntaxFactory.ParseSyntaxTree(" 93Dim leftRoot = SyntaxFactory.ParseSyntaxTree(" 109Dim rightRoot = SyntaxFactory.ParseSyntaxTree("
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (1)
40Dim tree = SyntaxFactory.ParseSyntaxTree(ClearSource(source))
Extensions\StatementSyntaxExtensionTests.vb (1)
217Dim tree = SyntaxFactory.ParseSyntaxTree(code)
Semantics\SpeculationAnalyzerTests.vb (1)
126Return SyntaxFactory.ParseSyntaxTree(text)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (7)
PDB\PDBTests.vb (6)
25Dim tree1 = SyntaxFactory.ParseSyntaxTree("Class A : End Class", path:="Goo.vb", encoding:=Nothing) 26Dim tree2 = SyntaxFactory.ParseSyntaxTree("Class B : End Class", path:="", encoding:=Nothing) 28Dim tree4 = SyntaxFactory.ParseSyntaxTree("Class D : End Class", path:="Baz.vb", encoding:=Encoding.UTF8) 42Dim tree1 = SyntaxFactory.ParseSyntaxTree("Class A" & vbCrLf & "Sub F() : End Sub : End Class", path:="Goo.vb", encoding:=Encoding.Unicode) 43Dim tree2 = SyntaxFactory.ParseSyntaxTree("Class B" & vbCrLf & "Sub F() : End Sub : End Class", path:="", encoding:=Nothing) 44Dim tree3 = SyntaxFactory.ParseSyntaxTree("Class C" & vbCrLf & "Sub F() : End Sub : End Class", path:="Bar.vb", encoding:=New UTF8Encoding(True, False))
PDB\TypeDefinitionDocumentTests.vb (1)
345Dim trees = sources.Select(Function(s, i) SyntaxFactory.ParseSyntaxTree(s, path:=$"{i + 1}.vb", encoding:=Encoding.UTF8)).ToArray()
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (30)
Compilation\CompilationAPITests.vb (10)
38Dim tree = SyntaxFactory.ParseSyntaxTree(" 58Dim tree = SyntaxFactory.ParseSyntaxTree(" 80Dim tree = SyntaxFactory.ParseSyntaxTree(" 100Dim tree = SyntaxFactory.ParseSyntaxTree(" 121Dim tree = SyntaxFactory.ParseSyntaxTree(" 127Dim newTree = SyntaxFactory.ParseSyntaxTree(" 149Dim tree = SyntaxFactory.ParseSyntaxTree(" 2594Dim tree1 = SyntaxFactory.ParseSyntaxTree("", VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic12)) 2595Dim tree2 = SyntaxFactory.ParseSyntaxTree("", VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic12)) 2596Dim tree3 = SyntaxFactory.ParseSyntaxTree("", VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic11))
Compilation\SemanticModelAPITests.vb (2)
2930Dim tree = SyntaxFactory.ParseSyntaxTree(" 2965Dim tree = SyntaxFactory.ParseSyntaxTree("
Compilation\SuppressAccessibilityChecksTests.vb (3)
114Dim tree = SyntaxFactory.ParseSyntaxTree(source) 223Dim compilationA = CreateCompilationWithMscorlib40(SyntaxFactory.ParseSyntaxTree(source)) 225Dim blockStatement = SyntaxFactory.ParseSyntaxTree(<![CDATA[
Semantics\OptionalArgumentTests.vb (9)
2023SyntaxFactory.ParseSyntaxTree(source1, path:="C:\filename", encoding:=Encoding.UTF8), 2024SyntaxFactory.ParseSyntaxTree(source2, path:="a\b\..\c\d", encoding:=Encoding.UTF8), 2025SyntaxFactory.ParseSyntaxTree(source3, path:="*", encoding:=Encoding.UTF8), 2026SyntaxFactory.ParseSyntaxTree(source4, path:=" ", encoding:=Encoding.UTF8) 2103SyntaxFactory.ParseSyntaxTree(source1, path:="C:\filename", encoding:=Encoding.UTF8), 2104SyntaxFactory.ParseSyntaxTree(source2, path:="a\b\..\c\d.vb", encoding:=Encoding.UTF8), 2105SyntaxFactory.ParseSyntaxTree(source3, path:="*", encoding:=Encoding.UTF8), 2106SyntaxFactory.ParseSyntaxTree(source4, path:="C:\x.vb", encoding:=Encoding.UTF8), 2107SyntaxFactory.ParseSyntaxTree(source5, path:="C:\x.vb", encoding:=Encoding.UTF8)
Semantics\ScriptSemanticsTests.vb (6)
74syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 83syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 92syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 105syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 118syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 135Dim syntaxTree2 = SyntaxFactory.ParseSyntaxTree("System.Console.WriteLine(2)", options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (19)
LocationTests.vb (2)
265AssertMappedSpanEqual(SyntaxFactory.ParseSyntaxTree(sampleProgram, path:=""), "Class X", "", 1, 0, 1, 7, hasMappedPath:=False) 266AssertMappedSpanEqual(SyntaxFactory.ParseSyntaxTree(sampleProgram, path:=" "), "Class X", " ", 1, 0, 1, 7, hasMappedPath:=False)
Scanner\XmlScannerTests.vb (1)
368Dim tree = SyntaxFactory.ParseSyntaxTree("")
Syntax\SyntaxRewriterTests.vb (9)
528Dim tree = SyntaxFactory.ParseSyntaxTree("System.Console.Write(""Before"")", TestOptions.Script) 545Dim tree = SyntaxFactory.ParseSyntaxTree("m(a, b)", TestOptions.Script) 564Dim tree = SyntaxFactory.ParseSyntaxTree("m(a, b)", TestOptions.Script) 591Dim tree = SyntaxFactory.ParseSyntaxTree("Private Class C ", options:=TestOptions.Script) 611Dim tree = SyntaxFactory.ParseSyntaxTree("Public Class C" & vbCrLf & "End Class", options:=TestOptions.Script) 635Dim tree = SyntaxFactory.ParseSyntaxTree("Dim identifier 'c", options:=TestOptions.Script) 662Dim tree = SyntaxFactory.ParseSyntaxTree("Dim identifier 'c", options:=TestOptions.Script) 684Dim tree = SyntaxFactory.ParseSyntaxTree("Private Class C" & vbCrLf & "End Class", options:=TestOptions.Script) 697Dim tree = SyntaxFactory.ParseSyntaxTree("Private Class C" & vbCrLf & "End Class", options:=TestOptions.Script)
Syntax\SyntaxSubmissionsTests.vb (3)
11Dim tree = SyntaxFactory.ParseSyntaxTree(code, options:=TestOptions.Script) 29Assert.False(SyntaxFactory.IsCompleteSubmission(SyntaxFactory.ParseSyntaxTree(code, options:=TestOptions.Script))) 37SyntaxFactory.ParseSyntaxTree("Dim x = 12", options:=TestOptions.Regular)))
Syntax\SyntaxTreeTests.vb (4)
110Dim oldTree = SyntaxFactory.ParseSyntaxTree("Class B : End Class") 152Dim oldTree = SyntaxFactory.ParseSyntaxTree("Class B : End Class", path:="old.vb") 190oldTree = SyntaxFactory.ParseSyntaxTree("", path:="old.vb") 192Assert.Equal(String.Empty, SyntaxFactory.ParseSyntaxTree("", path:=Nothing).FilePath)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (9)
CodeGeneration\SyntaxGeneratorTests.vb (6)
38Return VisualBasicCompilation.Create("test").AddReferences(TestMetadata.Net451.mscorlib).AddSyntaxTrees(SyntaxFactory.ParseSyntaxTree(code)) 2345Dim compilation = _emptyCompilation.AddSyntaxTrees(SyntaxFactory.ParseSyntaxTree("Public Delegate Sub D()")) 2352Dim compilation = _emptyCompilation.AddSyntaxTrees(SyntaxFactory.ParseSyntaxTree( 2368Dim compilation = _emptyCompilation.AddSyntaxTrees(SyntaxFactory.ParseSyntaxTree( 2394Dim compilation = _emptyCompilation.AddSyntaxTrees(SyntaxFactory.ParseSyntaxTree( 2420Dim compilation = _emptyCompilation.AddSyntaxTrees(SyntaxFactory.ParseSyntaxTree(
VisualBasicSyntaxFactsServiceTests.vb (3)
509Dim tree = SyntaxFactory.ParseSyntaxTree(code) 527Dim tree = SyntaxFactory.ParseSyntaxTree(code) 543Dim tree = SyntaxFactory.ParseSyntaxTree(code)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
FormattingTests.cs (1)
79var tree = VB.SyntaxFactory.ParseSyntaxTree(input);
SymbolKeyTests.cs (1)
1408var tree = VisualBasic.SyntaxFactory.ParseSyntaxTree(source, path: path);