15 references to Create
Microsoft.CodeAnalysis (6)
CodeGen\SwitchStringJumpTableEmitter.cs (1)
146
ConstantValue hashConstant = ConstantValue.
Create
(hashValue);
Compilation\Expression.cs (1)
18
return ConstantValue.
Create
((uint)value);
ConstantValue.cs (1)
378
case ConstantValueTypeDiscriminator.UInt32: return
Create
((uint)value);
EnumConstantHelper.cs (1)
86
offsetValue = ConstantValue.
Create
((uint)(previous + offset));
MetadataReader\MetadataDecoder.cs (1)
1091
return ConstantValue.
Create
(sigReader.ReadUInt32());
MetadataReader\PEModule.cs (1)
3764
return ConstantValue.
Create
(reader.ReadUInt32());
Microsoft.CodeAnalysis.CSharp (9)
Binder\PatternExplainer.cs (1)
823
if (remainingValues.Any(BinaryOperatorKind.GreaterThan, ConstantValue.
Create
(uint.MaxValue)))
Lowering\LocalRewriter\LocalRewriter_Literal.cs (4)
106
arguments.Add(new BoundLiteral(syntax, ConstantValue.
Create
((uint)value), _compilation.GetSpecialType(SpecialType.System_UInt32)));
124
arguments.Add(new BoundLiteral(syntax, ConstantValue.
Create
(low), _compilation.GetSpecialType(SpecialType.System_Int32)));
125
arguments.Add(new BoundLiteral(syntax, ConstantValue.
Create
(mid), _compilation.GetSpecialType(SpecialType.System_Int32)));
126
arguments.Add(new BoundLiteral(syntax, ConstantValue.
Create
(high), _compilation.GetSpecialType(SpecialType.System_Int32)));
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
1255
constantOne = ConstantValue.
Create
(1U);
1267
constantOne = ConstantValue.
Create
(1U);
Lowering\SyntheticBoundNodeFactory.cs (1)
757
return new BoundLiteral(Syntax, ConstantValue.
Create
(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_UInt32)) { WasCompilerGenerated = true };
Utilities\ValueSetFactory.UIntTC.cs (1)
51
public ConstantValue ToConstantValue(uint value) => ConstantValue.
Create
(value);