5 overrides of IsConst
Microsoft.CodeAnalysis.CSharp (5)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
90
public override bool
IsConst
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
474
public override bool
IsConst
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
54
public sealed override bool
IsConst
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
115
public override bool
IsConst
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
155
public override bool
IsConst
19 references to IsConst
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder.ValueChecks.cs (1)
5857
if (field.
IsConst
)
Binder\Binder_AnonymousTypes.cs (1)
197
return !((FieldSymbol)member).
IsConst
;
Binder\Binder_Attributes.cs (1)
632
invalidNamedArgument |= fieldSymbol.
IsConst
;
Binder\Binder_Expressions.cs (1)
8579
if (fieldSymbol.
IsConst
&& !IsInsideNameof)
Binder\Binder_Initializers.cs (1)
187
if ((object)fieldSymbol != null && fieldSymbol.
IsConst
)
Binder\PatternExplainer.cs (1)
653
if (declaredMember is FieldSymbol {
IsConst
: true, IsStatic: true, DeclaredAccessibility: Accessibility.Public } field &&
CodeGen\EmitExpression.cs (1)
1139
Debug.Assert(!field.
IsConst
|| field.ContainingType.SpecialType == SpecialType.System_Decimal,
Compiler\MethodCompiler.cs (1)
559
if (fieldSymbol.
IsConst
)
Emitter\Model\FieldSymbolAdapter.cs (1)
204
return AdaptedFieldSymbol.IsReadOnly || (AdaptedFieldSymbol.
IsConst
&& !AdaptedFieldSymbol.IsMetadataConstant);
FlowAnalysis\NullableWalker.cs (2)
747
if (field?.
IsConst
?? false)
818
case FieldSymbol {
IsConst
: true }:
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
173
if (!((FieldSymbol)symbol).
IsConst
)
Symbols\FieldSymbol.cs (3)
142
get { return this.
IsConst
&& (this.Type.SpecialType != SpecialType.System_Decimal); }
153
if (!
IsConst
)
171
if (!
IsConst
)
Symbols\PublicModel\FieldSymbol.cs (1)
82
bool IFieldSymbol.IsConst => _underlying.
IsConst
;
Symbols\Source\SourceMemberContainerSymbol.cs (2)
722
if (!member.IsFieldOrFieldLikeEvent(out field) || field.
IsConst
|| field.IsFixedSizeBuffer)
4860
return initializers.Any(static siblings => siblings.Any(static initializer => !initializer.FieldOpt.
IsConst
));
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
159
return _underlyingField.
IsConst
;