1 write to Source
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorCodeDocument.cs (1)
59
Source
= source;
49 references to Source
Microsoft.CodeAnalysis.Razor.Compiler (49)
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\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 (11)
128
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, value, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode);
149
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, value, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode);
171
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, value, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode);
193
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, value, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode);
220
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, value, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode);
243
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, value, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode);
265
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, value, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode);
278
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, value);
294
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, value, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode);
304
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, value, _directiveTagHelperContributions, _unresolvedDocumentNode);
317
return new RazorCodeDocument(
Source
, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, value, _unresolvedDocumentNode);
Language\RazorCodeDocumentExtensions.cs (3)
30
var filePath = codeDocument.
Source
.RelativePath ?? codeDocument.
Source
.FilePath;
56
(codeDocument.FileKind.IsLegacy() && string.Equals(Path.GetFileName(codeDocument.
Source
.FilePath), MvcImportProjectFeature.ImportsFileName, StringComparison.OrdinalIgnoreCase));
Language\RazorCSharpDocumentWriter.cs (1)
33
codeDocument.
Source
,
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 (4)
387
item.codeDocument.
Source
.FilePath ?? string.Empty, item.InheritsValue!, item.codeDocument.GetUsingDirectives()))
517
filePathToDocument.Add(codeDocument.
Source
.FilePath!, (hintName, codeDocument));
518
hintNameToFilePath.Add(hintName, codeDocument.
Source
.FilePath!);
522
hintNameToFilePath.Add(GetDeclIdentifierFromHintName(hintName), codeDocument.
Source
.FilePath!);