740 references to SyntaxTree
ConfigurationSchemaGenerator (1)
GenerateDocumentationAndConfigFiles (32)
Microsoft.Analyzers.Extra (2)
Microsoft.AspNetCore.App.Analyzers (3)
Microsoft.CodeAnalysis (34)
DiagnosticAnalyzer\AnalysisContextInfo.cs (3)
43this(compilation: compilation, operation: null, symbol: null, file: new SourceOrAdditionalFile(node.SyntaxTree), node)
48this(compilation: compilation, operation: operation, symbol: null, file: new SourceOrAdditionalFile(operation.Syntax.SyntaxTree), node: operation.Syntax)
53this(compilation: compilation, operation: null, symbol: symbol, file: new SourceOrAdditionalFile(node.SyntaxTree), node)
DiagnosticAnalyzer\AnalyzerExecutor.cs (6)
776Debug.Assert(!IsAnalyzerSuppressedForTree(syntaxNodeAction.Analyzer, node.SyntaxTree, cancellationToken));
970@this.GetControlFlowGraph, declaredNode.SyntaxTree, executionData.FilterSpan, executionData.IsGeneratedCode, cancellationToken);
1000executionData.AnalyzerOptions, diagReporter.AddDiagnosticAction, isSupportedDiagnostic, @this.GetControlFlowGraph, declaredNode.SyntaxTree,
1039IsAnalyzerSuppressedForTree(executionData.Analyzer, declaredNode.SyntaxTree, cancellationToken))
1632_isGeneratedCodeLocation(node.SyntaxTree, node.Span, cancellationToken))
1644_isGeneratedCodeLocation(operation.Syntax.SyntaxTree, operation.Syntax.Span, cancellationToken))
Microsoft.CodeAnalysis.Analyzers (43)
Microsoft.CodeAnalysis.AnalyzerUtilities (21)
Microsoft.CodeAnalysis.CodeStyle (48)
src\roslyn\src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
353context.Node.SyntaxTree,
Microsoft.CodeAnalysis.CodeStyle.Fixes (25)
Microsoft.CodeAnalysis.CSharp (41)
Microsoft.CodeAnalysis.CSharp.CodeStyle (38)
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_ProgramMain.cs (1)
70root.SyntaxTree,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (20)
Microsoft.CodeAnalysis.CSharp.Features (83)
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_ProgramMain.cs (1)
70root.SyntaxTree,
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (3)
Microsoft.CodeAnalysis.CSharp.Workspaces (17)
Microsoft.CodeAnalysis.Features (120)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (25)
550var oldTree = oldRoot.SyntaxTree;
551var newTree = newRoot.SyntaxTree;
766oldRoot ??= GetEmptyRoot(newRoot!.SyntaxTree.Options);
767newRoot ??= GetEmptyRoot(oldRoot.SyntaxTree.Options);
773=> EmptyCompilationUnit.SyntaxTree.WithRootAndOptions(EmptyCompilationUnit, options).GetRoot(cancellationToken);
1034newExceptionRegions[i] = GetExceptionRegions(ancestors, newStatement.SyntaxTree, cancellationToken).Spans;
1178newActiveStatements[activeStatementIndex] = GetActiveStatementWithSpan(oldActiveStatements[activeStatementIndex], topMatch.NewRoot.SyntaxTree, newSpan, diagnostics, cancellationToken);
1565newExceptionRegions[ordinal] = GetExceptionRegions(newAncestors, newStatementSyntax.SyntaxTree, cancellationToken).Spans;
1758return GetExceptionRegions(ancestors, root.SyntaxTree, cancellationToken);
2222var oldTree = topMatch.OldRoot.SyntaxTree;
2223var newTree = topMatch.NewRoot.SyntaxTree;
2730var oldTree = editScript.Match.OldRoot.SyntaxTree;
2731var newTree = editScript.Match.NewRoot.SyntaxTree;
2766var newTypeDeclaration = GetSymbolDeclarationSyntax(newSymbol, refs => refs.First(r => r.SyntaxTree == edit.NewNode!.SyntaxTree), cancellationToken);
2803if (oldSymbol == null || oldDeclaration == null || oldDeclaration != null && oldDeclaration.SyntaxTree != oldModel.SyntaxTree)
2807else if (newSymbol == null || newDeclaration == null || newDeclaration != null && newDeclaration.SyntaxTree != newModel.SyntaxTree)
3383? new(await oldProject.Solution.GetRequiredDocument(oldDeclaration.SyntaxTree).GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false))
5203var oldContainerDeclaration = analyzer.GetSymbolDeclarationSyntax(oldSymbol.ContainingSymbol, topMatch.OldRoot.SyntaxTree, cancellationToken);
5274span: (locationNode.SyntaxTree == newModel.SyntaxTree) ?
5571var oldSyntaxTree = topMatch.OldRoot.SyntaxTree;
5572var newSyntaxTree = topMatch.NewRoot.SyntaxTree;
5689if (newDeclaration?.SyntaxTree == newSyntaxTree)
6057static item => new RuntimeRudeEdit(item.Value.ToDiagnostic(item.Key.SyntaxTree).ToString(), (int)item.Value.Kind));
6841Debug.Assert(otherNode.SyntaxTree == otherRoot.SyntaxTree);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (4)
456var otherDocument = finalSolution.GetDocument(propertySyntax.SyntaxTree);
459var otherRoot = await propertySyntax.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
509codeGenerator.GetInfo(GetAddContext<IPropertySymbol>(parameter, blockStatement, typeDeclaration, cancellationToken), options, root.SyntaxTree.Options),
516codeGenerator.GetInfo(GetAddContext<IFieldSymbol>(parameter, blockStatement, typeDeclaration, cancellationToken), options, root.SyntaxTree.Options),
src\roslyn\src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
353context.Node.SyntaxTree,
Microsoft.CodeAnalysis.Razor.Compiler (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (16)
Microsoft.CodeAnalysis.VisualBasic (36)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.VisualBasic.Features (10)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (11)
Microsoft.CodeAnalysis.Workspaces (54)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ContextualOptions (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.MetadataExtractor (4)
Microsoft.Gen.Metrics (2)
Microsoft.Gen.MetricsReports (2)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Roslyn.Diagnostics.Analyzers (35)
Roslyn.Diagnostics.CSharp.Analyzers (11)
Roslyn.Diagnostics.VisualBasic.Analyzers (3)
System.Private.CoreLib.Generators (2)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (4)
System.Windows.Forms.PrivateSourceGenerators (1)