2 instantiations of MetadataConstant
Microsoft.CodeAnalysis (2)
CodeGen\PermissionSetAttribute.cs (1)
112return ImmutableArray.Create<Cci.IMetadataNamedArgument>(new HexPropertyMetadataNamedArgument(stringType, new MetadataConstant(stringType, hexFileContent)));
Emit\CommonPEModuleBuilder.cs (1)
751return new MetadataConstant(Translate(type, syntaxNodeOpt, diagnostics), value);
29 references to MetadataConstant
Microsoft.CodeAnalysis (29)
CodeGen\LocalConstantDefinition.cs (2)
22MetadataConstant compileTimeValue, 40public MetadataConstant CompileTimeValue { get; }
CodeGen\LocalDefinition.cs (1)
107public MetadataConstant CompileTimeValue
CodeGen\PermissionSetAttribute.cs (2)
79Debug.Assert(fileArg.ArgumentValue is MetadataConstant); 80var fileName = (string?)((MetadataConstant)fileArg.ArgumentValue).Value;
CodeGen\PrivateImplementationDetails.cs (2)
634public MetadataConstant? GetCompileTimeValue(EmitContext context) => null; 700public MetadataConstant Constant
CodeGen\SignatureOnlyLocalDefinition.cs (1)
29public MetadataConstant CompileTimeValue
Emit\CommonPEModuleBuilder.cs (1)
745internal MetadataConstant CreateConstant(
Emit\EditAndContinue\DeletedSourceParameterDefinition.cs (1)
45public MetadataConstant? GetDefaultValue(EmitContext context)
Emit\NoPia\CommonEmbeddedField.cs (2)
53protected abstract MetadataConstant GetCompileTimeValue(EmitContext context); 67MetadataConstant Cci.IFieldDefinition.GetCompileTimeValue(EmitContext context)
Emit\NoPia\CommonEmbeddedParameter.cs (2)
63protected abstract MetadataConstant GetDefaultValue(EmitContext context); 140MetadataConstant Cci.IParameterDefinition.GetDefaultValue(EmitContext context)
Emit\NoPia\CommonEmbeddedProperty.cs (1)
106MetadataConstant Cci.IPropertyDefinition.DefaultValue
PEWriter\Members.cs (4)
178MetadataConstant? GetCompileTimeValue(EmitContext context); 299MetadataConstant CompileTimeValue 683MetadataConstant? GetDefaultValue(EmitContext context); 747MetadataConstant? DefaultValue
PEWriter\MetadataVisitor.cs (3)
102var constant = fieldDefinition.GetCompileTimeValue(Context); 217public virtual void Visit(MetadataConstant constant) 447MetadataConstant? defaultValue = parameterDefinition.GetDefaultValue(Context);
PEWriter\MetadataWriter.cs (4)
2388var constant = fieldDef.GetCompileTimeValue(Context); 2401var defaultValue = parDef.GetDefaultValue(Context); 3551MetadataConstant c = expression as MetadataConstant;
PEWriter\MetadataWriter.PortablePdb.cs (1)
119var mdConstant = constant.CompileTimeValue;
PEWriter\ReturnValueParameter.cs (2)
33public MetadataConstant? Constant 48public MetadataConstant? GetDefaultValue(EmitContext context)