16 references to WithImportSyntaxTrees
Microsoft.AspNetCore.Razor.Language.UnitTests (15)
DefaultRazorIntermediateNodeLoweringPhaseTest.cs (7)
39codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource, options)]); 77codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource, options)]); 116codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource1, options), RazorSyntaxTree.Parse(importSource2, options)]); 153codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource, options)]); 183codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource, options)]); 216codeDocument = codeDocument.WithImportSyntaxTrees([RazorSyntaxTree.Parse(importSource, options)]); 293codeDocument = codeDocument.WithImportSyntaxTrees(
RazorCodeDocumentExtensionsTest.cs (8)
21codeDocument = codeDocument.WithImportSyntaxTrees([importSyntaxTree]); 325codeDocument = codeDocument.WithImportSyntaxTrees([importSyntaxTree]); 357codeDocument = codeDocument.WithImportSyntaxTrees([importSyntaxTree]); 390codeDocument = codeDocument.WithImportSyntaxTrees([importSyntaxTree]); 423codeDocument = codeDocument.WithImportSyntaxTrees([importSyntaxTree]); 463codeDocument = codeDocument.WithImportSyntaxTrees([importSyntaxTree1, importSyntaxTree2]); 503codeDocument = codeDocument.WithImportSyntaxTrees([importSyntaxTree]); 532codeDocument = codeDocument.WithImportSyntaxTrees([importSyntaxTree]);
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\DefaultRazorParsingPhase.cs (1)
66.WithImportSyntaxTrees(importSyntaxTrees.ToImmutableAndClear());