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