1 write to Source
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorCodeDocument.cs (1)
59Source = source;
49 references to Source
Microsoft.CodeAnalysis.Razor.Compiler (49)
CSharp\Utf8WriteLiteralDetectionPass.cs (1)
43if (_utf8Feature.IsSupported(codeDocument.Source.FilePath, baseTypeName))
Language\Components\ComponentDocumentClassifierPass.cs (4)
63var checksum = ChecksumUtilities.BytesToString(codeDocument.Source.Text.GetChecksum()); 140if (codeDocument.Source.FilePath == null || codeDocument.Source.RelativePath == null) 145var relativePath = NormalizePath(codeDocument.Source.RelativePath);
Language\DefaultRazorParsingPhase.cs (1)
22var syntaxTree = RazorSyntaxTree.Parse(codeDocument.Source, options, cancellationToken);
Language\DefaultRazorTagHelperContextDiscoveryPhase_Pooling.cs (1)
39var filePath = codeDocument.Source.FilePath;
Language\DefaultTagHelperResolutionPhase.cs (1)
71var sourceDocument = codeDocument.Source;
Language\Extensions\MetadataAttributePass.cs (3)
65var identifier = _identifierFeature?.GetIdentifier(codeDocument, codeDocument.Source); 108var checksum = codeDocument.Source.Text.GetChecksum(); 109var checksumAlgorithm = codeDocument.Source.Text.ChecksumAlgorithm;
Language\NamespaceComputer.cs (2)
26var filePath = codeDocument.Source.FilePath; 27var relativePath = codeDocument.Source.RelativePath;
Language\RazorCodeDocument.cs (11)
128return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, value, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode); 149return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, value, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode); 171return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, value, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode); 193return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, value, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode); 220return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, value, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode); 243return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, value, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode); 265return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, value, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode); 278return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, _directiveTagHelperContributions, value); 294return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, value, _declCSharpDocument, _directiveTagHelperContributions, _unresolvedDocumentNode); 304return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, value, _directiveTagHelperContributions, _unresolvedDocumentNode); 317return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _declCSharpDocument, value, _unresolvedDocumentNode);
Language\RazorCodeDocumentExtensions.cs (3)
30var 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)
33codeDocument.Source,
Language\RazorHtmlWriter.cs (1)
41var source = codeDocument.Source;
Mvc.Version1_X\MvcViewDocumentClassifierPass.cs (3)
27var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath; 32var checksum = ChecksumUtilities.BytesToString(codeDocument.Source.Text.GetChecksum());
Mvc.Version2_X\AssemblyAttributeInjectionPass.cs (1)
46var escapedPath = MakeVerbatimStringLiteral(ConvertToViewEnginePath(codeDocument.Source.RelativePath));
Mvc.Version2_X\MvcViewDocumentClassifierPass.cs (3)
27var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath; 32var 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)
59var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath; 64var checksum = ChecksumUtilities.BytesToString(codeDocument.Source.Text.GetChecksum()); 125var leadingDirectiveCodeDocument = LeadingDirectiveParsingEngine.CreateCodeDocument(codeDocument.Source);
Mvc\CreateNewOnMetadataUpdateAttributePass.cs (1)
46var identifier = identifierFeature.GetIdentifier(codeDocument, codeDocument.Source);
Mvc\MvcViewDocumentClassifierPass.cs (1)
47var checksum = ChecksumUtilities.BytesToString(codeDocument.Source.Text.GetChecksum());
Mvc\RazorPageDocumentClassifierPass.cs (2)
77var checksum = ChecksumUtilities.BytesToString(codeDocument.Source.Text.GetChecksum()); 144var leadingDirectiveCodeDocument = LeadingDirectiveParsingEngine.CreateCodeDocument(codeDocument.Source);
SourceGenerators\RazorSourceGenerator.cs (4)
387item.codeDocument.Source.FilePath ?? string.Empty, item.InheritsValue!, item.codeDocument.GetUsingDirectives())) 517filePathToDocument.Add(codeDocument.Source.FilePath!, (hintName, codeDocument)); 518hintNameToFilePath.Add(hintName, codeDocument.Source.FilePath!); 522hintNameToFilePath.Add(GetDeclIdentifierFromHintName(hintName), codeDocument.Source.FilePath!);