17 references to SyntaxTree
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
147var tree = document.SyntaxTree;
Microsoft.CodeAnalysis.CSharp.Features (3)
BraceCompletion\InterpolatedStringBraceCompletionService.cs (2)
87return document.SyntaxTree.IsExpressionContext(token.SpanStart, previousToken, attributes: true, cancellationToken) 88|| document.SyntaxTree.IsStatementContext(token.SpanStart, previousToken, cancellationToken);
ConvertNamespaceTransform.cs (1)
122var syntaxTree = document.SyntaxTree;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Formatting\CSharpSyntaxFormattingService.cs (1)
59documentSyntax.SyntaxTree.IsInNonUserCode(caretPosition, cancellationToken))
Microsoft.CodeAnalysis.EditorFeatures (1)
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (1)
103var snippet = getSnippetAction(service, parsedDocument.SyntaxTree, parsedDocument.Text, snapshot.Span.Start, options, cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
GoToAdjacentMember\AbstractGoToAdjacentMemberTests.cs (2)
43Assert.Empty(parsedDocument.SyntaxTree.GetDiagnostics()); 69Assert.Empty(parsedDocument.SyntaxTree.GetDiagnostics());
Microsoft.CodeAnalysis.Features (2)
BraceCompletion\AbstractBraceCompletionService.cs (2)
88return !syntaxFactsService.IsInNonUserCode(document.SyntaxTree, openingPosition, cancellationToken); 127var tree = context.Document.SyntaxTree;
Microsoft.CodeAnalysis.Workspaces (7)
AbstractIndentationService.cs (1)
62return new Indenter(this, document.SyntaxTree, formattingRules, options, lineToBeIndented, smartTokenFormatter, cancellationToken);
ParsedDocument.cs (6)
21/// 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 52var root = SyntaxTree.WithChangedText(text).GetRoot(cancellationToken); 75if (Text == oldDocument.Text || SyntaxTree == oldDocument.SyntaxTree) 89return SyntaxTree.GetChanges(oldDocument.SyntaxTree);