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