9 instantiations of RazorCodeGenerationOptions
Microsoft.CodeAnalysis.Razor.Compiler (9)
Language\RazorCodeGenerationOptions.Builder.cs (1)
182=> new(IndentSize, NewLine, RootNamespace, CssScope, SuppressUniqueIds, RazorWarningLevel, _flags);
Language\RazorCodeGenerationOptions.cs (8)
13public static RazorCodeGenerationOptions Default { get; } = new( 180: new(value, NewLine, RootNamespace, CssScope, SuppressUniqueIds, RazorWarningLevel, _flags); 185: new(IndentSize, value, RootNamespace, CssScope, SuppressUniqueIds, RazorWarningLevel, _flags); 190: new(IndentSize, NewLine, value, CssScope, SuppressUniqueIds, RazorWarningLevel, _flags); 195: new(IndentSize, NewLine, RootNamespace, value, SuppressUniqueIds, RazorWarningLevel, _flags); 200: new(IndentSize, NewLine, RootNamespace, CssScope, value, RazorWarningLevel, _flags); 205: new(IndentSize, NewLine, RootNamespace, CssScope, SuppressUniqueIds, value, _flags); 285: new(IndentSize, NewLine, RootNamespace, CssScope, SuppressUniqueIds, RazorWarningLevel, flags);
41 references to RazorCodeGenerationOptions
Microsoft.CodeAnalysis.Razor.Compiler (41)
Language\CodeGeneration\CodeRenderingContext.cs (2)
17public RazorCodeGenerationOptions Options { get; } 38RazorCodeGenerationOptions options,
Language\CodeGeneration\CodeRenderingContextExtensions.cs (4)
56var options = context.Options; 68var options = context.Options; 91private static (int originalIndent, bool ensureBackSlashes) WritePreamble(CodeWriter writer, RazorCodeGenerationOptions options) 119var options = _context.Options;
Language\CodeGeneration\CodeTarget.cs (1)
12public RazorCodeGenerationOptions Options => codeDocument.CodeGenerationOptions;
Language\CodeGeneration\CodeTargetBuilder.cs (1)
13public RazorCodeGenerationOptions Options => codeDocument.CodeGenerationOptions;
Language\CodeGeneration\CodeWriter.cs (2)
47: this(RazorCodeGenerationOptions.Default) 51public CodeWriter(RazorCodeGenerationOptions options)
Language\IConfigureRazorCodeGenerationOptionsFeature.cs (1)
10void Configure(RazorCodeGenerationOptions.Builder options);
Language\Intermediate\DocumentIntermediateNode.cs (1)
52public RazorCodeGenerationOptions Options { get; set; }
Language\RazorCodeDocument.cs (5)
21public RazorCodeGenerationOptions CodeGenerationOptions { get; } 48RazorCodeGenerationOptions codeGenerationOptions, 85RazorCodeGenerationOptions? codeGenerationOptions = null) 92RazorCodeGenerationOptions? codeGenerationOptions = null) 100codeGenerationOptions ?? RazorCodeGenerationOptions.Default,
Language\RazorCodeGenerationOptions.Builder.cs (1)
181public RazorCodeGenerationOptions ToOptions()
Language\RazorCodeGenerationOptions.cs (9)
13public static RazorCodeGenerationOptions Default { get; } = new( 67public static RazorCodeGenerationOptions Create(Action<Builder> configure) 177public RazorCodeGenerationOptions WithIndentSize(int value) 182public RazorCodeGenerationOptions WithNewLine(string value) 187public RazorCodeGenerationOptions WithRootNamespace(string? value) 192public RazorCodeGenerationOptions WithCssScope(string? value) 197public RazorCodeGenerationOptions WithSuppressUniqueIds(string? value) 202public RazorCodeGenerationOptions WithRazorWarningLevel(int value) 207public RazorCodeGenerationOptions WithFlags(
Language\RazorCSharpDocumentWriter.cs (3)
107private RazorCodeGenerationOptions Options => _context.Options; 138$"{nameof(RazorCodeGenerationOptions)}.{nameof(RazorCodeGenerationOptions.SuppressChecksum)}",
Language\RazorHtmlWriter.cs (1)
42var options = codeDocument.CodeGenerationOptions;
Language\RazorProjectEngine.cs (6)
135Action<RazorCodeGenerationOptions.Builder>? configureCodeGeneration = null) 151Action<RazorCodeGenerationOptions.Builder>? configureCodeGeneration) 154var codeGenerationOptions = ComputeCodeGenerationOptions(cssScope, configureCodeGeneration); 175private RazorCodeGenerationOptions ComputeCodeGenerationOptions(string? cssScope, Action<RazorCodeGenerationOptions.Builder>? configure) 178var builder = new RazorCodeGenerationOptions.Builder()
Language\RazorProjectEngineBuilderExtensions.cs (4)
75public static RazorProjectEngineBuilder ConfigureCodeGenerationOptions(this RazorProjectEngineBuilder builder, Action<RazorCodeGenerationOptions.Builder> configure) 205private sealed class ConfigureCodeGenerationOptionsFeature(Action<RazorCodeGenerationOptions.Builder> configure) : RazorEngineFeatureBase, IConfigureRazorCodeGenerationOptionsFeature 209public void Configure(RazorCodeGenerationOptions.Builder builder) 222public void Configure(RazorCodeGenerationOptions.Builder builder)