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