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