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)
13
public 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)
17
public
RazorCodeGenerationOptions
Options { get; }
38
RazorCodeGenerationOptions
options)
Language\CodeGeneration\CodeRenderingContextExtensions.cs (4)
56
var
options = context.Options;
68
var
options = context.Options;
91
private static (int originalIndent, bool ensureBackSlashes) WritePreamble(CodeWriter writer,
RazorCodeGenerationOptions
options)
119
var
options = _context.Options;
Language\CodeGeneration\CodeTarget.cs (1)
12
public
RazorCodeGenerationOptions
Options => codeDocument.CodeGenerationOptions;
Language\CodeGeneration\CodeTargetBuilder.cs (1)
13
public
RazorCodeGenerationOptions
Options => codeDocument.CodeGenerationOptions;
Language\CodeGeneration\CodeWriter.cs (2)
47
: this(
RazorCodeGenerationOptions
.Default)
51
public CodeWriter(
RazorCodeGenerationOptions
options)
Language\DefaultRazorCSharpLoweringPhase.cs (3)
71
private
RazorCodeGenerationOptions
Options => _context.Options;
102
$"{nameof(
RazorCodeGenerationOptions
)}.{nameof(
RazorCodeGenerationOptions
.SuppressChecksum)}",
Language\IConfigureRazorCodeGenerationOptionsFeature.cs (1)
10
void Configure(
RazorCodeGenerationOptions
.Builder options);
Language\Intermediate\DocumentIntermediateNode.cs (1)
17
public
RazorCodeGenerationOptions
Options { get; set; }
Language\RazorCodeDocument.cs (5)
20
public
RazorCodeGenerationOptions
CodeGenerationOptions { get; }
44
RazorCodeGenerationOptions
codeGenerationOptions,
75
RazorCodeGenerationOptions
? codeGenerationOptions = null)
82
RazorCodeGenerationOptions
? codeGenerationOptions = null)
90
codeGenerationOptions ??
RazorCodeGenerationOptions
.Default,
Language\RazorCodeGenerationOptions.Builder.cs (1)
169
public
RazorCodeGenerationOptions
ToOptions()
Language\RazorCodeGenerationOptions.cs (9)
13
public static
RazorCodeGenerationOptions
Default { get; } = new(
67
public static
RazorCodeGenerationOptions
Create(Action<Builder> configure)
167
public
RazorCodeGenerationOptions
WithIndentSize(int value)
172
public
RazorCodeGenerationOptions
WithNewLine(string value)
177
public
RazorCodeGenerationOptions
WithRootNamespace(string? value)
182
public
RazorCodeGenerationOptions
WithCssScope(string? value)
187
public
RazorCodeGenerationOptions
WithSuppressUniqueIds(string? value)
192
public
RazorCodeGenerationOptions
WithRazorWarningLevel(int value)
197
public
RazorCodeGenerationOptions
WithFlags(
Language\RazorHtmlWriter.cs (1)
42
var
options = codeDocument.CodeGenerationOptions;
Language\RazorProjectEngine.cs (6)
135
Action<
RazorCodeGenerationOptions
.Builder>? configureCodeGeneration = null)
151
Action<
RazorCodeGenerationOptions
.Builder>? configureCodeGeneration)
154
var
codeGenerationOptions = ComputeCodeGenerationOptions(cssScope, configureCodeGeneration);
175
private
RazorCodeGenerationOptions
ComputeCodeGenerationOptions(string? cssScope, Action<
RazorCodeGenerationOptions
.Builder>? configure)
178
var builder = new
RazorCodeGenerationOptions
.Builder()
Language\RazorProjectEngineBuilderExtensions.cs (4)
75
public static RazorProjectEngineBuilder ConfigureCodeGenerationOptions(this RazorProjectEngineBuilder builder, Action<
RazorCodeGenerationOptions
.Builder> configure)
205
private sealed class ConfigureCodeGenerationOptionsFeature(Action<
RazorCodeGenerationOptions
.Builder> configure) : RazorEngineFeatureBase, IConfigureRazorCodeGenerationOptionsFeature
209
public void Configure(
RazorCodeGenerationOptions
.Builder builder)
222
public void Configure(
RazorCodeGenerationOptions
.Builder builder)