1 write to Source
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorCodeDocument.cs (1)
55Source = source;
46 references to Source
Microsoft.CodeAnalysis.Razor.Compiler (46)
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\DefaultRazorCSharpLoweringPhase.cs (1)
42codeDocument.Source,
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 (9)
120return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, value, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _directiveTagHelperContributions); 141return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, value, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _directiveTagHelperContributions); 163return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, value, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _directiveTagHelperContributions); 185return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, value, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, _directiveTagHelperContributions); 212return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, value, _tagHelperContext, _documentNode, _csharpDocument, _directiveTagHelperContributions); 235return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, value, _documentNode, _csharpDocument, _directiveTagHelperContributions); 257return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, value, _csharpDocument, _directiveTagHelperContributions); 279return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, value, _directiveTagHelperContributions); 292return new RazorCodeDocument(Source, Imports, ParserOptions, CodeGenerationOptions, _tagHelpers, _referencedTagHelpers, _syntaxTree, _tagHelperRewrittenSyntaxTree, _importSyntaxTrees, _tagHelperContext, _documentNode, _csharpDocument, value);
Language\RazorCodeDocumentExtensions.cs (3)
21var 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)
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 (3)
279item.codeDocument.Source.FilePath ?? string.Empty, item.InheritsValue!, item.codeDocument.GetUsingDirectives())) 381filePathToDocument.Add(codeDocument.Source.FilePath!, (hintName, codeDocument)); 382hintNameToFilePath.Add(hintName, codeDocument.Source.FilePath!);