1 write to ParserOptions
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorCodeDocument.cs (1)
58ParserOptions = parserOptions;
41 references to ParserOptions
Microsoft.AspNetCore.Razor.Language.UnitTests (18)
DefaultRazorProjectEngineIntegrationTest.cs (2)
23var parserOptions = codeDocument.ParserOptions; 45var parserOptions = codeDocument.ParserOptions;
RazorCodeDocumentExtensionsTest.cs (16)
292codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions)); 317codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions)); 324var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions); 349codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions)); 356var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions); 382codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions)); 389var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions); 415codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions)); 422var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions); 447codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions)); 454var importSyntaxTree1 = RazorSyntaxTree.Parse(importSource1, codeDocument.ParserOptions); 461var importSyntaxTree2 = RazorSyntaxTree.Parse(importSource2, codeDocument.ParserOptions); 494codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions)); 502var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions); 524codeDocument = codeDocument.WithSyntaxTree(RazorSyntaxTree.Parse(source, codeDocument.ParserOptions)); 531var importSyntaxTree = RazorSyntaxTree.Parse(importSource, codeDocument.ParserOptions);
Microsoft.CodeAnalysis.Razor.Compiler (23)
Language\Components\ComponentBindLoweringPass.cs (1)
45var bindGetSetSupported = codeDocument.ParserOptions.LanguageVersion >= RazorLanguageVersion.Version_7_0;
Language\Components\ComponentCodeTarget.cs (1)
14private RazorLanguageVersion Version => CodeDocument.ParserOptions.LanguageVersion;
Language\Components\ComponentDocumentClassifierPass.cs (1)
103var razorLanguageVersion = codeDocument.ParserOptions.LanguageVersion;
Language\Components\ComponentRenderModeDirectivePass.cs (3)
44var useFileScopedClass = codeDocument.ParserOptions.CSharpParseOptions.LanguageVersion >= CodeAnalysis.CSharp.LanguageVersion.CSharp11 && 45codeDocument.ParserOptions.LanguageVersion >= RazorLanguageVersion.Version_11_0 && 73source: codeDocument.ParserOptions.LanguageVersion >= RazorLanguageVersion.Version_11_0
Language\Components\ComponentWhitespacePass.cs (1)
36var razorLanguageVersion = codeDocument.ParserOptions.LanguageVersion;
Language\DefaultRazorParsingPhase.cs (1)
21var options = codeDocument.ParserOptions;
Language\DefaultRazorTagHelperContextDiscoveryPhase_Pooling.cs (1)
37var useComponentDirectiveVisitor = codeDocument.ParserOptions.AllowComponentFileKind &&
Language\DefaultTagHelperResolutionPhase.cs (1)
48var parserOptions = codeDocument.ParserOptions;
Language\Extensions\ImplementsDirectivePass.cs (1)
33var source = codeDocument.ParserOptions.DesignTime ? null : token.Source;
Language\Extensions\InheritsDirectivePass.cs (1)
28var source = codeDocument.ParserOptions.DesignTime ? null : token.Source;
Language\RazorCodeDocument.cs (10)
22public RazorFileKind FileKind => ParserOptions.FileKind; 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);
Mvc\PagesPropertyInjectionPass.cs (1)
24var razor9OrHigher = codeDocument.ParserOptions.LanguageVersion >= RazorLanguageVersion.Version_9_0;