16 references to SyntaxTree
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Conditional.cs (2)
251
var syntaxTree = SyntaxFactory.
SyntaxTree
(root);
462
var 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)
1505
var node2 = (ExpressionSyntax)SyntaxFactory.
SyntaxTree
(node).GetRoot();
Semantics\SyntaxTreeRootTests.cs (4)
27
var tree = SyntaxFactory.
SyntaxTree
(node);
50
var tree = SyntaxFactory.
SyntaxTree
(SyntaxFactory.FromClause("Nay", SyntaxFactory.LiteralExpression(SyntaxKind.NumericLiteralExpression, SyntaxFactory.Literal(823))));
60
var arbitraryTree = SyntaxFactory.
SyntaxTree
(SyntaxFactory.Attribute(SyntaxFactory.IdentifierName("Wooh")));
71
var tree = SyntaxFactory.
SyntaxTree
(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Diagnostics\LocationsTests.cs (1)
587
var tree = SyntaxFactory.
SyntaxTree
(nodeWithBadError);
IncrementalParsing\IncrementalParsingTests.cs (1)
3060
var oldTree = SyntaxFactory.
SyntaxTree
(oldRoot, options: tempTree.Options, path: tempTree.FilePath);
Syntax\SyntaxFactoryTests.cs (1)
45
var text = SyntaxFactory.
SyntaxTree
(SyntaxFactory.CompilationUnit(), encoding: null).GetText();
Syntax\SyntaxTreeTests.cs (4)
201
var tree = SyntaxFactory.
SyntaxTree
(SyntaxFactory.CompilationUnit());
209
var tree = SyntaxFactory.
SyntaxTree
(SyntaxFactory.CompilationUnit());
219
var tree = SyntaxFactory.
SyntaxTree
(SyntaxFactory.CompilationUnit());
230
var tree = SyntaxFactory.
SyntaxTree
(SyntaxFactory.CompilationUnit());