16 references to SyntaxTree
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Conditional.cs (2)
251var syntaxTree = SyntaxFactory.SyntaxTree(root); 462var syntaxTree = SyntaxFactory.SyntaxTree(root);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
EditAndContinue\Helpers\EditingTestBase.cs (2)
219? ((BaseMethodDeclarationSyntax)SyntaxFactory.SyntaxTree(declaration).GetRoot()).Body 220: (BlockSyntax)SyntaxFactory.SyntaxTree(declaration.Body!).GetRoot();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\LookupTests.cs (1)
1505var node2 = (ExpressionSyntax)SyntaxFactory.SyntaxTree(node).GetRoot();
Semantics\SyntaxTreeRootTests.cs (4)
27var tree = SyntaxFactory.SyntaxTree(node); 50var tree = SyntaxFactory.SyntaxTree(SyntaxFactory.FromClause("Nay", SyntaxFactory.LiteralExpression(SyntaxKind.NumericLiteralExpression, SyntaxFactory.Literal(823)))); 60var arbitraryTree = SyntaxFactory.SyntaxTree(SyntaxFactory.Attribute(SyntaxFactory.IdentifierName("Wooh"))); 71var tree = SyntaxFactory.SyntaxTree(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Diagnostics\LocationsTests.cs (1)
587var tree = SyntaxFactory.SyntaxTree(nodeWithBadError);
IncrementalParsing\IncrementalParsingTests.cs (1)
3060var oldTree = SyntaxFactory.SyntaxTree(oldRoot, options: tempTree.Options, path: tempTree.FilePath);
Syntax\SyntaxFactoryTests.cs (1)
45var text = SyntaxFactory.SyntaxTree(SyntaxFactory.CompilationUnit(), encoding: null).GetText();
Syntax\SyntaxTreeTests.cs (4)
201var tree = SyntaxFactory.SyntaxTree(SyntaxFactory.CompilationUnit()); 209var tree = SyntaxFactory.SyntaxTree(SyntaxFactory.CompilationUnit()); 219var tree = SyntaxFactory.SyntaxTree(SyntaxFactory.CompilationUnit()); 230var tree = SyntaxFactory.SyntaxTree(SyntaxFactory.CompilationUnit());