22 references to SyntaxTree
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
138var tree = document.SyntaxTree;
Microsoft.CodeAnalysis.CSharp.Features (5)
BraceCompletion\InterpolatedStringBraceCompletionService.cs (1)
77return IsLegalExpressionLocation(document.SyntaxTree, start, cancellationToken);
BraceCompletion\StringLiteralBraceCompletionService.cs (2)
47return IsLegalExpressionLocation(document.SyntaxTree, start, cancellationToken) 48|| document.SyntaxTree.IsPreProcessorDirectiveContext(start, cancellationToken);
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (2)
111var syntaxTree = document.SyntaxTree; 197var syntaxTree = document.SyntaxTree;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Formatting\CSharpSyntaxFormattingService.cs (1)
50documentSyntax.SyntaxTree.IsInNonUserCode(caretPosition, cancellationToken))
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
GoToAdjacentMember\AbstractGoToAdjacentMemberTests.cs (2)
40Assert.Empty(parsedDocument.SyntaxTree.GetDiagnostics()); 64Assert.Empty(parsedDocument.SyntaxTree.GetDiagnostics());
Microsoft.CodeAnalysis.Features (6)
BraceCompletion\AbstractBraceCompletionService.cs (2)
85return !syntaxFactsService.IsInNonUserCode(document.SyntaxTree, openingPosition, cancellationToken); 124var tree = context.Document.SyntaxTree;
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (4)
79var syntaxTree = document.SyntaxTree; 201var syntaxTree = document.SyntaxTree; 278var syntaxTree = document.SyntaxTree; 369var syntaxTree = document.SyntaxTree;
Microsoft.CodeAnalysis.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
59return new Indenter(this, document.SyntaxTree, document.Text, formattingRules, options, lineToBeIndented, smartTokenFormatter, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (6)
18/// Used to front-load <see cref="SyntaxTree"/> parsing and <see cref="SourceText"/> retrieval to a caller that has knowledge of whether or not these operations 49var root = SyntaxTree.WithChangedText(text).GetRoot(cancellationToken); 72if (Text == oldDocument.Text || SyntaxTree == oldDocument.SyntaxTree) 84return SyntaxTree.GetChanges(oldDocument.SyntaxTree);