1 write to Source
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorCodeDocument.cs (1)
55
Source
= source;
46 references to Source
Microsoft.CodeAnalysis.Razor.Compiler (46)
CSharp\Utf8WriteLiteralDetectionPass.cs (1)
43
if (_utf8Feature.IsSupported(codeDocument.
Source
.FilePath, baseTypeName))
Language\Components\ComponentDocumentClassifierPass.cs (4)
63
var checksum = ChecksumUtilities.BytesToString(codeDocument.
Source
.Text.GetChecksum());
140
if (codeDocument.
Source
.FilePath == null || codeDocument.
Source
.RelativePath == null)
145
var relativePath = NormalizePath(codeDocument.
Source
.RelativePath);
Language\DefaultRazorCSharpLoweringPhase.cs (1)
42
codeDocument.
Source
,
Language\DefaultRazorParsingPhase.cs (1)
22
var syntaxTree = RazorSyntaxTree.Parse(codeDocument.
Source
, options, cancellationToken);
Language\DefaultRazorTagHelperContextDiscoveryPhase_Pooling.cs (1)
39
var filePath = codeDocument.
Source
.FilePath;
Language\DefaultTagHelperResolutionPhase.cs (1)
71
var sourceDocument = codeDocument.
Source
;
Language\Extensions\MetadataAttributePass.cs (3)
65
var identifier = _identifierFeature?.GetIdentifier(codeDocument, codeDocument.
Source
);
108
var checksum = codeDocument.
Source
.Text.GetChecksum();
109
var checksumAlgorithm = codeDocument.
Source
.Text.ChecksumAlgorithm;
Language\NamespaceComputer.cs (2)
26
var filePath = codeDocument.
Source
.FilePath;
27
var relativePath = codeDocument.
Source
.RelativePath;
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);
Language\RazorCodeDocumentExtensions.cs (3)
21
var filePath = codeDocument.
Source
.RelativePath ?? codeDocument.
Source
.FilePath;
47
(codeDocument.FileKind.IsLegacy() && string.Equals(Path.GetFileName(codeDocument.
Source
.FilePath), MvcImportProjectFeature.ImportsFileName, StringComparison.OrdinalIgnoreCase));
Language\RazorHtmlWriter.cs (1)
41
var source = codeDocument.
Source
;
Mvc.Version1_X\MvcViewDocumentClassifierPass.cs (3)
27
var filePath = codeDocument.
Source
.RelativePath ?? codeDocument.
Source
.FilePath;
32
var checksum = ChecksumUtilities.BytesToString(codeDocument.
Source
.Text.GetChecksum());
Mvc.Version2_X\AssemblyAttributeInjectionPass.cs (1)
46
var escapedPath = MakeVerbatimStringLiteral(ConvertToViewEnginePath(codeDocument.
Source
.RelativePath));
Mvc.Version2_X\MvcViewDocumentClassifierPass.cs (3)
27
var filePath = codeDocument.
Source
.RelativePath ?? codeDocument.
Source
.FilePath;
32
var checksum = ChecksumUtilities.BytesToString(codeDocument.
Source
.Text.GetChecksum());
Mvc.Version2_X\NamespaceDirective.cs (1)
72
@namespace.Name = GetNamespace(codeDocument.
Source
.FilePath, directive);
Mvc.Version2_X\RazorPageDocumentClassifierPass.cs (4)
59
var filePath = codeDocument.
Source
.RelativePath ?? codeDocument.
Source
.FilePath;
64
var checksum = ChecksumUtilities.BytesToString(codeDocument.
Source
.Text.GetChecksum());
125
var leadingDirectiveCodeDocument = LeadingDirectiveParsingEngine.CreateCodeDocument(codeDocument.
Source
);
Mvc\CreateNewOnMetadataUpdateAttributePass.cs (1)
46
var identifier = identifierFeature.GetIdentifier(codeDocument, codeDocument.
Source
);
Mvc\MvcViewDocumentClassifierPass.cs (1)
47
var checksum = ChecksumUtilities.BytesToString(codeDocument.
Source
.Text.GetChecksum());
Mvc\RazorPageDocumentClassifierPass.cs (2)
77
var checksum = ChecksumUtilities.BytesToString(codeDocument.
Source
.Text.GetChecksum());
144
var leadingDirectiveCodeDocument = LeadingDirectiveParsingEngine.CreateCodeDocument(codeDocument.
Source
);
SourceGenerators\RazorSourceGenerator.cs (3)
279
item.codeDocument.
Source
.FilePath ?? string.Empty, item.InheritsValue!, item.codeDocument.GetUsingDirectives()))
381
filePathToDocument.Add(codeDocument.
Source
.FilePath!, (hintName, codeDocument));
382
hintNameToFilePath.Add(hintName, codeDocument.
Source
.FilePath!);