1 write to Options
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\CodeGeneration\CodeRenderingContext.cs (1)
47Options = options;
40 references to Options
Microsoft.AspNetCore.Razor.Language.UnitTests (3)
CodeGeneration\DesignTimeNodeWriterTest.cs (3)
490Assert.True(context.Options.RemapLinePragmaPathsOnWindows); 534Assert.True(context.Options.RemapLinePragmaPathsOnWindows); 535Assert.True(context.Options.UseEnhancedLinePragma);
Microsoft.CodeAnalysis.Razor.Compiler (37)
Language\CodeGeneration\CodeRenderingContext.cs (1)
96var warningLevel = Options.RazorWarningLevel;
Language\CodeGeneration\CodeRenderingContextExtensions.cs (4)
15Debug.Assert(context.Options.DesignTime, "Runtime generation should only use enhanced line pragmas"); 59var options = context.Options; 71var options = context.Options; 122var options = _context.Options;
Language\CodeGeneration\CodeWriterExtensions.cs (4)
543if (defaultValue && context?.Options is { SuppressNullabilityEnforcement: false, DesignTime: false }) 568if (span is not null && context?.Options.DesignTime == false) 666if (context.Options.DesignTime || span is null) 800if (context.Options.DesignTime)
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\ComponentInjectIntermediateNode.cs (2)
65if (TypeName == string.Empty && TypeSpan.HasValue && !context.Options.DesignTime) 76if (!context.Options.DesignTime || !IsMalformed)
Language\Components\ComponentNodeWriter.cs (1)
32return !context.Options.SuppressAddComponentParameter && _version >= RazorLanguageVersion.Version_8_0;
Language\Components\ComponentRuntimeNodeWriter.cs (2)
584if (!context.Options.SuppressNullabilityEnforcement && IsDefaultExpression(valueExpression)) 1026else if (!context.Options.OmitMinimizedComponentAttributeValues)
Language\Components\RouteAttributeExtensionNode.cs (1)
21if (context.Options.DesignTime)
Language\DefaultRazorCSharpLoweringPhase.cs (1)
71private RazorCodeGenerationOptions Options => _context.Options;
Language\Extensions\DefaultTagHelperTargetExtension.cs (11)
86if (context.Options.DesignTime) 134if (!context.Options.DesignTime) 162if (!context.Options.DesignTime) 197if (context.Options.DesignTime) 281if (!context.Options.DesignTime) 331if (context.Options.DesignTime) 363if (context.Options.DesignTime) 437if (!context.Options.DesignTime) 462if (!context.Options.DesignTime) 530if (context.Options.DesignTime) 616var uniqueId = context.Options.SuppressUniqueIds;
Language\Extensions\DesignTimeDirectiveTargetExtension.cs (2)
86if (!context.Options.SuppressNullabilityEnforcement) 123if (!context.Options.SuppressNullabilityEnforcement)
Language\Extensions\MetadataAttributeTargetExtension.cs (1)
62if (node.Source.HasValue && !context.Options.DesignTime)
Language\Extensions\SectionTargetExtension.cs (1)
27if (context.Options.DesignTime)
Mvc\InjectTargetExtension.cs (4)
28if (!context.Options.DesignTime && !string.IsNullOrWhiteSpace(node.TypeSource?.FilePath)) 47if (considerNullabilityEnforcement && !context.Options.SuppressNullabilityEnforcement) 66if (considerNullabilityEnforcement && !context.Options.SuppressNullabilityEnforcement) 75if (considerNullabilityEnforcement && !context.Options.SuppressNullabilityEnforcement)