8 instantiations of RazorSyntaxTree
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (1)
Microsoft.AspNetCore.Razor.Language.UnitTests (2)
Microsoft.AspNetCore.Razor.Test.Common (1)
Microsoft.CodeAnalysis.Razor.Compiler (4)
318 references to RazorSyntaxTree
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (7)
Microsoft.AspNetCore.Razor.Language.UnitTests (135)
DefaultRazorIntermediateNodeLoweringPhaseTest.cs (18)
38codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options));
39codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource, options)]);
76codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options));
77codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource, options)]);
115codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options));
116codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource1, options), RazorSyntaxTree.Parse(importSource2, options)]);
152codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options));
153codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource, options)]);
182codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options));
183codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource, options)]);
215codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options));
216codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource, options)]);
247$"The '{nameof(DefaultRazorIntermediateNodeLoweringPhase)}' phase requires a '{nameof(RazorSyntaxTree)}' " +
266codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options));
292codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, parseOptions));
295RazorSyntaxTree.Parse(TestRazorSourceDocument.Create("@ "), parseOptions),
296RazorSyntaxTree.Parse(TestRazorSourceDocument.Create("<p @("), parseOptions),
RazorCodeDocumentExtensionsTest.cs (29)
20var importSyntaxTree = RazorSyntaxTree.Parse(codeDocument.Source);
28Assert.Equal<RazorSyntaxTree>([importSyntaxTree], actual);
292codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
317codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
324var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions);
349codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
356var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions);
382codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
389var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions);
415codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
422var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions);
447codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
454var importSyntaxTree1 = RazorSyntaxTree.Parse(importSource1, codeDocument.ParserOptions);
461var importSyntaxTree2 = RazorSyntaxTree.Parse(importSource2, codeDocument.ParserOptions);
494codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
502var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions);
524codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
531var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions);
543var syntaxTree = RazorSyntaxTree.Parse(codeDocument.Source);
Microsoft.AspNetCore.Razor.Microbenchmarks (2)
Microsoft.AspNetCore.Razor.Microbenchmarks.Compiler (4)
Microsoft.AspNetCore.Razor.Test.Common (15)
Language\Legacy\ParserTestBase.cs (6)
63internal virtual void AssertSyntaxTreeNodeMatchesBaseline(RazorSyntaxTree syntaxTree)
183internal virtual void BaselineTest(RazorSyntaxTree syntaxTree, bool verifySyntaxTree = true, bool ensureFullFidelity = true)
193internal RazorSyntaxTree ParseDocument(
204internal virtual RazorSyntaxTree ParseDocument(
230var syntaxTree = new RazorSyntaxTree(root, source, diagnostics, parseOptions);
282var result = ParseDocument(version, document, directives, designTime, fileKind: fileKind, csharpParseOptions: csharpParseOptions);
Microsoft.AspNetCore.Razor.Test.Common.Tooling (2)
Microsoft.CodeAnalysis.Razor.Compiler (57)
Microsoft.CodeAnalysis.Razor.Workspaces (57)
Diagnostics\RazorTranslateDiagnosticsService.cs (13)
83var syntaxTree = codeDocument.GetRequiredTagHelperRewrittenSyntaxTree();
138RazorSyntaxTree syntaxTree)
150RazorSyntaxTree syntaxTree)
179private static bool AppliesToTagHelperTagName(LspDiagnostic diagnostic, SourceText sourceText, RazorSyntaxTree syntaxTree)
216private static bool ShouldFilterHtmlDiagnosticBasedOnErrorCode(LspDiagnostic diagnostic, SourceText sourceText, RazorSyntaxTree syntaxTree)
269static bool IsAtCSharpTransitionInStyleBlock(LspDiagnostic diagnostic, SourceText sourceText, RazorSyntaxTree syntaxTree)
299static bool IsAnyFilteredTooFewElementsError(LspDiagnostic diagnostic, SourceText sourceText, RazorSyntaxTree syntaxTree)
329static bool IsHtmlWithBangAndMatchingTags(LspDiagnostic diagnostic, SourceText sourceText, RazorSyntaxTree syntaxTree)
353static bool IsAnyFilteredInvalidNestingError(LspDiagnostic diagnostic, SourceText sourceText, RazorSyntaxTree syntaxTree)
357static bool IsInvalidNestingWarningWithinComponent(LspDiagnostic diagnostic, SourceText sourceText, RazorSyntaxTree syntaxTree)
372static bool IsInvalidNestingFromBody(LspDiagnostic diagnostic, SourceText sourceText, RazorSyntaxTree syntaxTree)
399RazorSyntaxTree syntaxTree,
542var syntaxTree = codeDocument.GetRequiredTagHelperRewrittenSyntaxTree();
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (34)
Completion\DirectiveCompletionItemProviderTest.cs (13)
42var syntaxTree = CreateSyntaxTree("@addTag");
60var syntaxTree = CreateSyntaxTree("@addTag", customDirective);
85var syntaxTree = CreateSyntaxTree("@addTag", customDirective);
110var syntaxTree = CreateSyntaxTree("@cod", customDirective);
134var syntaxTree = CreateSyntaxTree("@sec", customDirective);
169var syntaxTree = CreateSyntaxTree("@", RazorFileKind.Component, customDirective);
193var syntaxTree = CreateSyntaxTree("@", RazorFileKind.Legacy, customDirective);
213var syntaxTree = CreateSyntaxTree("@addTag", RazorFileKind.Component);
424var syntaxTree = CreateSyntaxTree(text, directives);
460private static RazorSyntaxTree CreateSyntaxTree(TestCode text, params DirectiveDescriptor[] directives)
465private static RazorSyntaxTree CreateSyntaxTree(TestCode text, RazorFileKind fileKind, params DirectiveDescriptor[] directives)
476var syntaxTree = RazorSyntaxTree.Parse(sourceDocument, options);
Microsoft.CodeAnalysis.Remote.Razor (4)
Microsoft.VisualStudio.LanguageServices.Razor (1)