1 write to Imports
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorCodeDocument.cs (1)
56
Imports
= imports.NullToEmpty();
18 references to Imports
Microsoft.AspNetCore.Razor.Language.UnitTests (6)
DefaultRazorProjectEngineIntegrationTest.cs (6)
73
var import = Assert.Single(codeDocument.
Imports
);
99
Assert.Collection(codeDocument.
Imports
,
141
Assert.Equal(expectedImports, codeDocument.
Imports
);
236
Assert.Empty(codeDocument.
Imports
);
260
Assert.Equal(expectedImports, codeDocument.
Imports
);
339
Assert.Empty(codeDocument.
Imports
);
Microsoft.CodeAnalysis.Razor.Compiler (12)
Language\DefaultRazorParsingPhase.cs (2)
24
using var importSyntaxTrees = new PooledArrayBuilder<RazorSyntaxTree>(codeDocument.
Imports
.Length);
26
foreach (var import in codeDocument.
Imports
)
Language\Extensions\MetadataAttributePass.cs (1)
126
foreach (var import in codeDocument.
Imports
)
Language\RazorCodeDocument.cs (9)
120
return new RazorCodeDocument(Source,
Imports
, ParserOptions, CodeGenerationOptions, value, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _directiveTagHelperContributions);
141
return new RazorCodeDocument(Source,
Imports
, ParserOptions, CodeGenerationOptions, _tagHelpers, value, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _directiveTagHelperContributions);
163
return new RazorCodeDocument(Source,
Imports
, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, value, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _directiveTagHelperContributions);
185
return new RazorCodeDocument(Source,
Imports
, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, value, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _directiveTagHelperContributions);
212
return new RazorCodeDocument(Source,
Imports
, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, value, _tagHelperContext, _documentNode, _csharpDocument, _directiveTagHelperContributions);
235
return new RazorCodeDocument(Source,
Imports
, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, value, _documentNode, _csharpDocument, _directiveTagHelperContributions);
257
return new RazorCodeDocument(Source,
Imports
, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, value, _csharpDocument, _directiveTagHelperContributions);
279
return new RazorCodeDocument(Source,
Imports
, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, value, _directiveTagHelperContributions);
292
return new RazorCodeDocument(Source,
Imports
, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, value);