8 references to IsMetadataConstant
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Initializers.cs (2)
94
if (!fieldSymbol.
IsMetadataConstant
)
289
Debug.Assert(!fieldSymbol.
IsMetadataConstant
);
Compiler\MethodCompiler.cs (1)
598
(init.Kind == BoundKind.FieldEqualsValue) && !((BoundFieldEqualsValue)init).Field.
IsMetadataConstant
));
Emitter\Model\FieldSymbolAdapter.cs (3)
155
if (AdaptedFieldSymbol.
IsMetadataConstant
)
186
return AdaptedFieldSymbol.
IsMetadataConstant
;
204
return AdaptedFieldSymbol.IsReadOnly || (AdaptedFieldSymbol.IsConst && !AdaptedFieldSymbol.
IsMetadataConstant
);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1234
if (initializer.FieldOpt == null || !initializer.FieldOpt.
IsMetadataConstant
)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1601
if (!singleInitializer.FieldOpt.
IsMetadataConstant
)