9 references to SuppressNullabilityEnforcement
Microsoft.CodeAnalysis.Razor.Compiler (9)
Language\CodeGeneration\CodeRenderingContextExtensions.cs (2)
100
if (!options.
SuppressNullabilityEnforcement
)
141
if (!options.
SuppressNullabilityEnforcement
)
Language\CodeGeneration\CodeWriterExtensions.cs (1)
543
if (defaultValue && context?.Options is {
SuppressNullabilityEnforcement
: false })
Language\Components\ComponentNodeWriter.cs (1)
1212
if (!context.Options.
SuppressNullabilityEnforcement
&& IsDefaultExpression(valueExpression))
Language\DefaultRazorCSharpLoweringPhase.cs (1)
182
useNullableContext: !Options.
SuppressNullabilityEnforcement
&& node.NullableContext))
Mvc\InjectTargetExtension.cs (3)
47
if (considerNullabilityEnforcement && !context.Options.
SuppressNullabilityEnforcement
)
66
if (considerNullabilityEnforcement && !context.Options.
SuppressNullabilityEnforcement
)
75
if (considerNullabilityEnforcement && !context.Options.
SuppressNullabilityEnforcement
)
Mvc\PagesPropertyInjectionPass.cs (1)
25
var nullableEnabled = razor9OrHigher && !codeDocument.CodeGenerationOptions.
SuppressNullabilityEnforcement
;