37 references to WithSyntaxTree
Microsoft.AspNetCore.Razor.Language.UnitTests (34)
DefaultRazorCSharpLoweringPhaseTest.cs (3)
22
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source));
39
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source));
62
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source));
DefaultRazorIntermediateNodeLoweringPhaseTest.cs (8)
38
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source, options));
76
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source, options));
115
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source, options));
152
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source, options));
182
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source, options));
215
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source, options));
266
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source, options));
292
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(codeDocument.Source, parseOptions));
DefaultRazorSyntaxTreePhaseTest.cs (1)
71
codeDocument = codeDocument.
WithSyntaxTree
(originalSyntaxTree);
DefaultRazorTagHelperBinderPhaseTest.cs (14)
40
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
69
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
98
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
131
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
164
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
203
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
242
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
284
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
327
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
361
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
391
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
411
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
435
codeDocument = codeDocument.
WithSyntaxTree
(originalTree);
483
codeDocument = codeDocument.
WithSyntaxTree
(erroredOriginalTree);
RazorCodeDocumentExtensionsTest.cs (8)
292
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
317
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
349
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
382
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
415
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
447
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
494
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
524
codeDocument = codeDocument.
WithSyntaxTree
(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions));
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\Legacy\ParserTestBase.cs (1)
231
codeDocument = codeDocument.
WithSyntaxTree
(syntaxTree);
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\DefaultRazorParsingPhase.cs (1)
65
.
WithSyntaxTree
(syntaxTree)
Language\DefaultRazorSyntaxTreePhase.cs (1)
30
return codeDocument.
WithSyntaxTree
(syntaxTree);