2 overrides of Int64Value
Microsoft.CodeAnalysis (2)
ConstantValueSpecialized.cs (2)
602
public override long
Int64Value
828
public override long
Int64Value
95 references to Int64Value
Microsoft.CodeAnalysis (23)
CodeGen\ILBuilderEmit.cs (1)
596
EmitLongConstant(value.
Int64Value
);
CodeGen\SwitchIntegralJumpTableEmitter.cs (7)
389
var nextCaseLabelValue = caseLabelConstant.
Int64Value
;
390
Debug.Assert(nextCaseLabelValue > startConstant.
Int64Value
);
391
nextCaseLabelNormalizedValue = (ulong)(nextCaseLabelValue - startConstant.
Int64Value
);
467
_builder.EmitLongConstant(endConstant.
Int64Value
- startConstant.
Int64Value
);
553
_builder.EmitLongConstant(endConstant.
Int64Value
- startConstant.
Int64Value
);
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (6)
190
Debug.Assert(endConstant.
Int64Value
>= startConstant.
Int64Value
);
191
bucketSize = unchecked((ulong)(endConstant.
Int64Value
- startConstant.
Int64Value
+ 1));
209
return startConstant.
Int64Value
== Int64.MinValue
210
&& endConstant.
Int64Value
== Int64.MaxValue;
ConstantValue.cs (4)
523
case ConstantValueTypeDiscriminator.Int64: return Boxes.Box(
Int64Value
);
582
return
Int64Value
< 0;
794
writer.WriteInt64(this.
Int64Value
);
822
ConstantValueTypeDiscriminator.Int64 =>
Int64Value
.ToString(provider),
ConstantValueSpecialized.cs (1)
851
return base.Equals(other) && _value == other.
Int64Value
;
EnumConstantHelper.cs (1)
92
long previous = constantValue.
Int64Value
;
SwitchConstantValueHelper.cs (3)
78
return first.
Int64Value
.CompareTo(second.
Int64Value
);
141
return constant.
Int64Value
.GetHashCode();
Microsoft.CodeAnalysis.CSharp (57)
Binder\Binder_Conversions.cs (2)
1916
long int64Value = value.
Int64Value
;
2092
case ConstantValueTypeDiscriminator.Int64: return (decimal)value.
Int64Value
;
Binder\Binder_Expressions.cs (1)
4042
return constantValue.
Int64Value
< 0;
Binder\Binder_Operators.cs (48)
1515
var int64Value = valueLeft.
Int64Value
<< valueRight.Int32Value;
1542
return valueLeft.
Int64Value
+ valueRight.
Int64Value
;
1550
return valueLeft.
Int64Value
- valueRight.
Int64Value
;
1558
return valueLeft.
Int64Value
* valueRight.
Int64Value
;
1574
if (valueLeft.
Int64Value
== long.MinValue && valueRight.
Int64Value
== -1)
1579
return valueLeft.
Int64Value
/ valueRight.
Int64Value
;
1598
return valueLeft.
Int64Value
+ valueRight.
Int64Value
;
1606
return valueLeft.
Int64Value
- valueRight.
Int64Value
;
1614
return valueLeft.
Int64Value
* valueRight.
Int64Value
;
1622
return valueLeft.
Int64Value
/ valueRight.
Int64Value
;
1981
return valueLeft.
Int64Value
<< valueRight.Int32Value;
1994
return valueLeft.
Int64Value
>> valueRight.Int32Value;
1996
return (long)(((ulong)valueLeft.
Int64Value
) >> valueRight.Int32Value); // Switch to `valueLeft.Int64Value >>> valueRight.Int32Value` once >>> becomes available
2011
return valueLeft.
Int64Value
& valueRight.
Int64Value
;
2023
return valueLeft.
Int64Value
| valueRight.
Int64Value
;
2035
return valueLeft.
Int64Value
^ valueRight.
Int64Value
;
2059
return valueLeft.
Int64Value
== valueRight.
Int64Value
;
2079
return valueLeft.
Int64Value
!= valueRight.
Int64Value
;
2095
return valueLeft.
Int64Value
< valueRight.
Int64Value
;
2111
return valueLeft.
Int64Value
> valueRight.
Int64Value
;
2127
return valueLeft.
Int64Value
<= valueRight.
Int64Value
;
2143
return valueLeft.
Int64Value
>= valueRight.
Int64Value
;
2159
return (valueRight.
Int64Value
!= -1) ? valueLeft.
Int64Value
% valueRight.
Int64Value
: 0;
2892
return +value.
Int64Value
;
2906
return ~value.
Int64Value
;
2923
return -value.
Int64Value
;
2939
return -value.
Int64Value
;
3098
return valueRight.
Int64Value
== 0;
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1315
else if (specialSource == SpecialType.System_Int64 && destination.GetSpecialTypeSafe() == SpecialType.System_UInt64 && (constantValue.IsBad || 0 <= constantValue.
Int64Value
))
1933
return value.
Int64Value
== 0;
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
226
stringBuilder.Append(',').Append(fillin.Alignment.ConstantValueOpt.
Int64Value
);
Symbols\TypedConstantExtensions.cs (2)
63
return DisplaySignedEnumConstant(constant, splType, valueConstant.
Int64Value
, typeName);
168
long memberValue = memberConstant.
Int64Value
;
Utilities\ValueSetFactory.LongTC.cs (1)
53
long INumericTC<long>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0L : constantValue.
Int64Value
;
Microsoft.CodeAnalysis.VisualBasic (13)
Binding\Binder_InterpolatedString.vb (1)
54
If constantValue.
Int64Value
< -Short.MaxValue Then
Binding\Binder_SelectCase.vb (2)
706
Return lbConstantValue.
Int64Value
> ubConstantValue.
Int64Value
BoundTree\BoundExpressionExtensions.vb (3)
435
If expression.ConstantValueOpt.
Int64Value
<= Integer.MaxValue AndAlso expression.ConstantValueOpt.
Int64Value
>= Integer.MinValue Then
436
Return CInt(expression.ConstantValueOpt.
Int64Value
)
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (2)
349
Dim initialValue As Long = initialConst.
Int64Value
350
Dim limitValue As Long = limitConst.
Int64Value
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (1)
145
.Append(interpolation.AlignmentOpt.ConstantValueOpt.
Int64Value
.ToString(Globalization.CultureInfo.InvariantCulture))
Semantics\CompileTimeCalculations.vb (2)
154
Case ConstantValueTypeDiscriminator.Int64 : Return value.
Int64Value
719
value = ConstantValue.Create(New DateTime(value.
Int64Value
))
Symbols\TypedConstant.vb (2)
61
Return DisplaySignedEnumConstant(constant, splType, valueConstant.
Int64Value
, typeName)
148
Dim memberValue = memberConstant.
Int64Value
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Metadata\PE\LoadingFields.vb (2)
142
Assert.Equal(634315546432909307, Int64Field.GetConstantValue(ConstantFieldsInProgress.Empty).
Int64Value
)
242
Assert.Equal(-8L, Int64Value.GetConstantValue(ConstantFieldsInProgress.Empty).
Int64Value
)