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)
13
public 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)
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\IConfigureRazorCodeGenerationOptionsFeature.cs (1)
10
void Configure(
RazorCodeGenerationOptions
.Builder options);
Language\Intermediate\DocumentIntermediateNode.cs (1)
52
public
RazorCodeGenerationOptions
Options { get; set; }
Language\RazorCodeDocument.cs (5)
21
public
RazorCodeGenerationOptions
CodeGenerationOptions { get; }
48
RazorCodeGenerationOptions
codeGenerationOptions,
85
RazorCodeGenerationOptions
? codeGenerationOptions = null)
92
RazorCodeGenerationOptions
? codeGenerationOptions = null)
100
codeGenerationOptions ??
RazorCodeGenerationOptions
.Default,
Language\RazorCodeGenerationOptions.Builder.cs (1)
181
public
RazorCodeGenerationOptions
ToOptions()
Language\RazorCodeGenerationOptions.cs (9)
13
public static
RazorCodeGenerationOptions
Default { get; } = new(
67
public static
RazorCodeGenerationOptions
Create(Action<Builder> configure)
177
public
RazorCodeGenerationOptions
WithIndentSize(int value)
182
public
RazorCodeGenerationOptions
WithNewLine(string value)
187
public
RazorCodeGenerationOptions
WithRootNamespace(string? value)
192
public
RazorCodeGenerationOptions
WithCssScope(string? value)
197
public
RazorCodeGenerationOptions
WithSuppressUniqueIds(string? value)
202
public
RazorCodeGenerationOptions
WithRazorWarningLevel(int value)
207
public
RazorCodeGenerationOptions
WithFlags(
Language\RazorCSharpDocumentWriter.cs (3)
107
private
RazorCodeGenerationOptions
Options => _context.Options;
138
$"{nameof(
RazorCodeGenerationOptions
)}.{nameof(
RazorCodeGenerationOptions
.SuppressChecksum)}",
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)