9 instantiations of RazorCodeGenerationOptions
Microsoft.CodeAnalysis.Razor.Compiler (9)
Language\RazorCodeGenerationOptions.Builder.cs (1)
170=> new(IndentSize, NewLine, RootNamespace, CssScope, SuppressUniqueIds, RazorWarningLevel, _flags);
Language\RazorCodeGenerationOptions.cs (8)
13public static RazorCodeGenerationOptions Default { get; } = new( 170: new(value, NewLine, RootNamespace, CssScope, SuppressUniqueIds, RazorWarningLevel, _flags); 175: new(IndentSize, value, RootNamespace, CssScope, SuppressUniqueIds, RazorWarningLevel, _flags); 180: new(IndentSize, NewLine, value, CssScope, SuppressUniqueIds, RazorWarningLevel, _flags); 185: new(IndentSize, NewLine, RootNamespace, value, SuppressUniqueIds, RazorWarningLevel, _flags); 190: new(IndentSize, NewLine, RootNamespace, CssScope, value, RazorWarningLevel, _flags); 195: new(IndentSize, NewLine, RootNamespace, CssScope, SuppressUniqueIds, value, _flags); 275: 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\DefaultRazorCSharpLoweringPhase.cs (3)
71private RazorCodeGenerationOptions Options => _context.Options; 102$"{nameof(RazorCodeGenerationOptions)}.{nameof(RazorCodeGenerationOptions.SuppressChecksum)}",
Language\IConfigureRazorCodeGenerationOptionsFeature.cs (1)
10void Configure(RazorCodeGenerationOptions.Builder options);
Language\Intermediate\DocumentIntermediateNode.cs (1)
17public RazorCodeGenerationOptions Options { get; set; }
Language\RazorCodeDocument.cs (5)
20public RazorCodeGenerationOptions CodeGenerationOptions { get; } 44RazorCodeGenerationOptions codeGenerationOptions, 75RazorCodeGenerationOptions? codeGenerationOptions = null) 82RazorCodeGenerationOptions? codeGenerationOptions = null) 90codeGenerationOptions ?? RazorCodeGenerationOptions.Default,
Language\RazorCodeGenerationOptions.Builder.cs (1)
169public RazorCodeGenerationOptions ToOptions()
Language\RazorCodeGenerationOptions.cs (9)
13public static RazorCodeGenerationOptions Default { get; } = new( 67public static RazorCodeGenerationOptions Create(Action<Builder> configure) 167public RazorCodeGenerationOptions WithIndentSize(int value) 172public RazorCodeGenerationOptions WithNewLine(string value) 177public RazorCodeGenerationOptions WithRootNamespace(string? value) 182public RazorCodeGenerationOptions WithCssScope(string? value) 187public RazorCodeGenerationOptions WithSuppressUniqueIds(string? value) 192public RazorCodeGenerationOptions WithRazorWarningLevel(int value) 197public RazorCodeGenerationOptions WithFlags(
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)