1 write to Source
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorSyntaxTree.cs (1)
32Source = source;
29 references to Source
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (1)
Legacy\WhiteSpaceRewriterTest.cs (1)
32var rewrittenTree = new RazorSyntaxTree(rewritten, parsed.Source, parsed.Diagnostics, parsed.Options);
Microsoft.AspNetCore.Razor.Language.UnitTests (4)
DefaultRazorParsingPhaseTest.cs (2)
80t => { Assert.Same(t.Source, importSources[0]); Assert.Equal("test", Assert.Single(t.Options.Directives).Directive); }, 81t => { Assert.Same(t.Source, importSources[1]); Assert.Equal("test", Assert.Single(t.Options.Directives).Directive); });
DefaultRazorTagHelperBinderPhaseTest.cs (1)
482var erroredOriginalTree = new RazorSyntaxTree(originalTree.Root, originalTree.Source, [initialError], originalTree.Options);
Legacy\WhiteSpaceRewriterTest.cs (1)
35var rewrittenTree = new RazorSyntaxTree(rewritten, parsed.Source, parsed.Diagnostics, parsed.Options);
Microsoft.AspNetCore.Razor.Test.Common (5)
Language\IntegrationTests\IntegrationTestBase.cs (1)
587var sourceContent = syntaxTree.Source.Text.ToString();
Language\IntegrationTests\RazorBaselineIntegrationTestBase.cs (1)
186var sourceContent = syntaxTree.Source.Text.ToString();
Language\Legacy\ParserTestBase.cs (1)
67var filePath = syntaxTree.Source.FilePath;
Language\SyntaxTreeVerifier.cs (2)
21using var verifier = new Verifier(syntaxTree.Source); 27var sourceText = syntaxTree.Source.Text;
Microsoft.AspNetCore.Razor.Test.Common.Tooling (1)
Language\Legacy\ToolingParserTestBase.cs (1)
52var filePath = syntaxTree.Source.FilePath;
Microsoft.CodeAnalysis.Razor.Compiler (13)
Language\DefaultDirectiveSyntaxTreePass.cs (2)
45return new RazorSyntaxTree(root, _syntaxTree.Source, diagnostics, _syntaxTree.Options); 83var directiveStart = node.Transition.GetSourceLocation(_syntaxTree.Source);
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (4)
65SourceDocument = syntaxTree.Source, 75SourceDocument = syntaxTree.Source, 84SourceDocument = syntaxTree.Source, 204importsVisitor.SourceDocument = import.Source;
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (1)
104_source = tree.Source;
Language\HtmlNodeOptimizationPass.cs (1)
21return new RazorSyntaxTree(rewritten, syntaxTree.Source, syntaxTree.Diagnostics, syntaxTree.Options);
Language\Legacy\ClassifiedSpanVisitor.cs (1)
43visitor.Initialize(syntaxTree.Source);
Language\Legacy\TagHelperParseTreeRewriter.cs (2)
27syntaxTree.Source, 51return new RazorSyntaxTree(rewritten, syntaxTree.Source, diagnostics, syntaxTree.Options);
Language\Legacy\TagHelperSpanVisitor.cs (1)
25var visitor = new TagHelperSpanVisitor(syntaxTree.Source, builder);
Language\NamespaceComputer.cs (1)
228_source = syntaxTree.Source;
Microsoft.CodeAnalysis.Razor.Workspaces (5)
Diagnostics\RazorTranslateDiagnosticsService.cs (2)
204var tagNameRange = tagName.GetRange(syntaxTree.Source); 446markupAttributeValue.GetLinePositionSpan(syntaxTree.Source).SpansMultipleLines();
Extensions\RazorCodeDocumentExtensions.CachedData.cs (1)
66builder.Add(tagHelperElement.GetSourceSpan(syntaxTree.Source));
Extensions\RazorCodeDocumentExtensions_ClassifiedSpans.cs (1)
71visitor.Initialize(syntaxTree.Source);
Formatting\Passes\RazorFormattingPass.cs (1)
58var source = syntaxTree.Source;