14 references to SuppressNullabilityEnforcement
Microsoft.AspNetCore.Razor.Language.UnitTests (1)
RazorProjectEngineBuilderExtensionsTest.cs (1)
135Assert.False(options.SuppressNullabilityEnforcement);
Microsoft.CodeAnalysis.Razor.Compiler (13)
Language\CodeGeneration\CodeRenderingContextExtensions.cs (2)
103if (!options.SuppressNullabilityEnforcement) 144if (!options.SuppressNullabilityEnforcement)
Language\CodeGeneration\CodeWriterExtensions.cs (1)
543if (defaultValue && context?.Options is { SuppressNullabilityEnforcement: false, DesignTime: false })
Language\Components\ComponentDesignTimeNodeWriter.cs (2)
604if (!context.Options.SuppressNullabilityEnforcement && IsDefaultExpression(valueExpression)) 1084var assignmentText = string.Build((node.FieldTypeName, context.Options.SuppressNullabilityEnforcement), (ref builder, state) =>
Language\Components\ComponentRuntimeNodeWriter.cs (1)
584if (!context.Options.SuppressNullabilityEnforcement && IsDefaultExpression(valueExpression))
Language\DefaultRazorCSharpLoweringPhase.cs (1)
182useNullableContext: !Options.SuppressNullabilityEnforcement && node.NullableContext))
Language\Extensions\DesignTimeDirectiveTargetExtension.cs (2)
86if (!context.Options.SuppressNullabilityEnforcement) 123if (!context.Options.SuppressNullabilityEnforcement)
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;