8 references to Create
Microsoft.CodeAnalysis (5)
Compilation\Expression.cs (1)
28
return ConstantValue.
Create
((byte)value);
ConstantValue.cs (1)
374
case ConstantValueTypeDiscriminator.Byte: return
Create
((byte)value);
EnumConstantHelper.cs (1)
46
offsetValue = ConstantValue.
Create
((byte)(previous + offset));
MetadataReader\MetadataDecoder.cs (1)
1075
return ConstantValue.
Create
(sigReader.ReadByte());
MetadataReader\PEModule.cs (1)
3758
return ConstantValue.
Create
(reader.ReadByte());
Microsoft.CodeAnalysis.CSharp (3)
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
128
arguments.Add(new BoundLiteral(syntax, ConstantValue.
Create
(scale), _compilation.GetSpecialType(SpecialType.System_Byte)));
Lowering\SyntheticBoundNodeFactory.cs (1)
744
return new BoundLiteral(Syntax, ConstantValue.
Create
(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Byte)) { WasCompilerGenerated = true };
Utilities\ValueSetFactory.ByteTC.cs (1)
57
ConstantValue INumericTC<byte>.ToConstantValue(byte value) => ConstantValue.
Create
(value);