3 overrides of Int32Value
Microsoft.CodeAnalysis (3)
ConstantValueSpecialized.cs (3)
587
public override int
Int32Value
802
public override int
Int32Value
889
public override int
Int32Value
144 references to Int32Value
Microsoft.CodeAnalysis (12)
CodeGen\ILBuilderEmit.cs (2)
592
EmitIntConstant(value.
Int32Value
);
599
EmitNativeIntConstant(value.
Int32Value
);
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
487
default: return value.
Int32Value
;
ConstantValue.cs (6)
69
public virtual long Int64Value { get { return
Int32Value
; } }
525
case ConstantValueTypeDiscriminator.Int32: return Boxes.Box(
Int32Value
);
529
case ConstantValueTypeDiscriminator.NInt: return Boxes.Box(
Int32Value
);
584
return
Int32Value
< 0;
786
writer.WriteInt32(this.
Int32Value
);
823
ConstantValueTypeDiscriminator.NInt or ConstantValueTypeDiscriminator.Int32 =>
Int32Value
.ToString(provider),
ConstantValueSpecialized.cs (2)
825
return base.Equals(other) && _value == other.
Int32Value
;
912
return base.Equals(other) && _value == other.
Int32Value
;
EnumConstantHelper.cs (1)
72
long previous = constantValue.
Int32Value
;
Microsoft.CodeAnalysis.CSharp (132)
Binder\Binder_Conversions.cs (4)
4173
int int32Value = value.
Int32Value
;
4213
int nintValue = value.
Int32Value
;
4368
case ConstantValueTypeDiscriminator.Int32: return (decimal)value.
Int32Value
;
4370
case ConstantValueTypeDiscriminator.NInt: return (decimal)value.
Int32Value
;
Binder\Binder_Expressions.cs (6)
4813
return constantValue.
Int32Value
;
4834
return constantValue.
Int32Value
< 0;
9805
if (convertedIndex.ConstantValueOpt is { SpecialType: SpecialType.System_Int32,
Int32Value
: int constIndex })
9887
if (hatExpression.Operand.ConstantValueOpt is { SpecialType: SpecialType.System_Int32,
Int32Value
: int constIndex })
9893
else if (convertedIndex is BoundConversion { Operand: { ConstantValueOpt: { SpecialType: SpecialType.System_Int32,
Int32Value
: int constIndex } } operand })
9900
arguments[0] is { ConstantValueOpt: { SpecialType: SpecialType.System_Int32,
Int32Value
: int constIndex1 } } index &&
Binder\Binder_InterpolatedString.cs (2)
107
int alignmentValue = alignmentConstant.
Int32Value
;
112
diagnostics.Add(ErrorCode.WRN_AlignmentMagnitude, alignment.Syntax.Location, alignmentConstant.
Int32Value
, magnitudeLimit);
Binder\Binder_Operators.cs (85)
2499
return valueLeft.
Int32Value
+ valueRight.
Int32Value
;
2503
return valueLeft.
Int32Value
- valueRight.
Int32Value
;
2507
return valueLeft.
Int32Value
* valueRight.
Int32Value
;
2511
return valueLeft.
Int32Value
/ valueRight.
Int32Value
;
2513
return valueLeft.
Int32Value
% valueRight.
Int32Value
;
2516
var int32Value = valueLeft.
Int32Value
<< valueRight.
Int32Value
;
2517
var int64Value = valueLeft.Int64Value << valueRight.
Int32Value
;
2522
var uint32Value = valueLeft.UInt32Value << valueRight.
Int32Value
;
2523
var uint64Value = valueLeft.UInt64Value << valueRight.
Int32Value
;
2542
return valueLeft.
Int32Value
+ valueRight.
Int32Value
;
2550
return valueLeft.
Int32Value
- valueRight.
Int32Value
;
2558
return valueLeft.
Int32Value
* valueRight.
Int32Value
;
2568
if (valueLeft.
Int32Value
== int.MinValue && valueRight.
Int32Value
== -1)
2573
return valueLeft.
Int32Value
/ valueRight.
Int32Value
;
2598
return valueLeft.
Int32Value
+ valueRight.
Int32Value
;
2606
return valueLeft.
Int32Value
- valueRight.
Int32Value
;
2614
return valueLeft.
Int32Value
* valueRight.
Int32Value
;
2622
return valueLeft.
Int32Value
/ valueRight.
Int32Value
;
2981
return valueLeft.
Int32Value
<< valueRight.
Int32Value
;
2983
return valueLeft.Int64Value << valueRight.
Int32Value
;
2985
return valueLeft.UInt32Value << valueRight.
Int32Value
;
2987
return valueLeft.UInt64Value << valueRight.
Int32Value
;
2989
return valueLeft.
Int32Value
>> valueRight.
Int32Value
;
2994
var int32Value = valueLeft.
Int32Value
>> valueRight.
Int32Value
;
2995
var int64Value = valueLeft.Int64Value >> valueRight.
Int32Value
;
2999
return valueLeft.
Int32Value
>>> valueRight.
Int32Value
;
3002
var int32Value = valueLeft.
Int32Value
>>> valueRight.
Int32Value
;
3003
var int64Value = valueLeft.Int64Value >>> valueRight.
Int32Value
;
3007
return valueLeft.Int64Value >> valueRight.
Int32Value
;
3009
return valueLeft.Int64Value >>> valueRight.
Int32Value
;
3011
return valueLeft.UInt32Value >> valueRight.
Int32Value
;
3013
return valueLeft.UInt32Value >>> valueRight.
Int32Value
;
3016
var uint32Value = valueLeft.UInt32Value >> valueRight.
Int32Value
;
3017
var uint64Value = valueLeft.UInt64Value >> valueRight.
Int32Value
;
3022
var uint32Value = valueLeft.UInt32Value >>> valueRight.
Int32Value
;
3023
var uint64Value = valueLeft.UInt64Value >>> valueRight.
Int32Value
;
3027
return valueLeft.UInt64Value >> valueRight.
Int32Value
;
3029
return valueLeft.UInt64Value >>> valueRight.
Int32Value
;
3034
return valueLeft.
Int32Value
& valueRight.
Int32Value
;
3046
return valueLeft.
Int32Value
| valueRight.
Int32Value
;
3058
return valueLeft.
Int32Value
^ valueRight.
Int32Value
;
3082
return valueLeft.
Int32Value
== valueRight.
Int32Value
;
3102
return valueLeft.
Int32Value
!= valueRight.
Int32Value
;
3118
return valueLeft.
Int32Value
< valueRight.
Int32Value
;
3134
return valueLeft.
Int32Value
> valueRight.
Int32Value
;
3150
return valueLeft.
Int32Value
<= valueRight.
Int32Value
;
3166
return valueLeft.
Int32Value
>= valueRight.
Int32Value
;
3182
return (valueRight.
Int32Value
!= -1) ? valueLeft.
Int32Value
% valueRight.
Int32Value
: 0;
4568
return +value.
Int32Value
;
4575
return ~value.
Int32Value
;
4596
return -value.
Int32Value
;
4612
return -value.
Int32Value
;
4626
return -value.
Int32Value
;
4766
return valueRight.
Int32Value
== 0;
Binder\DecisionDagBuilder.cs (3)
3495
Debug.Assert(t.Value.
Int32Value
>= 0);
3496
if (t.Value.
Int32Value
== 0)
3535
int value = constant.
Int32Value
;
Binder\PatternExplainer.cs (1)
463
int lengthValue = lengthValues.Sample.
Int32Value
;
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1383
int value = constantValue.IsBad ? 0 : constantValue.
Int32Value
;
2094
return value.
Int32Value
== 0;
Binder\SwitchBinder.cs (1)
294
return new System.IntPtr(constantValue.
Int32Value
);
CodeGen\EmitArrayInitializer.cs (1)
531
lengthForConstructor = length.ConstantValueOpt.
Int32Value
;
FlowAnalysis\DefiniteAssignment.cs (1)
1548
(elementAccess.Argument.ConstantValueOpt is { SpecialType: SpecialType.System_Int32,
Int32Value
: 0 } ||
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
797
cases = node.Cases.SelectAsArray(p => (ConstantValue.Create((long)p.value.
Int32Value
), p.label));
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
2162
int shiftAmount = rightConstantValue.
Int32Value
& rightMask;
2237
&& rightConstantValue.
Int32Value
is >= 0 and <= 0x1F)
2240
int shiftAmount = rightConstantValue.
Int32Value
;
2338
if (sizeOfExpression.ConstantValueOpt?.
Int32Value
== 1)
2360
if (constVal == null || constVal.
Int32Value
< 0)
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (8)
336
rangeSizeExpr.ConstantValueOpt is { SpecialType: SpecialType.System_Int32,
Int32Value
: >= 0 and int rangeSizeConst } &&
364
return expr.ConstantValueOpt is { SpecialType: SpecialType.System_Int32,
Int32Value
: 0 };
372
makeOffsetInput is { ConstantValueOpt.
Int32Value
: var offset })
408
if (index.ConstantValueOpt is { SpecialType: SpecialType.System_Int32,
Int32Value
: int constIndex })
725
if (loweredExpr.ConstantValueOpt?.
Int32Value
== 0)
1154
if (startExpr.ConstantValueOpt?.
Int32Value
== 0)
1158
else if (startExpr.ConstantValueOpt is {
Int32Value
: var startConst } && endExpr.ConstantValueOpt is {
Int32Value
: var endConst })
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (4)
31
if (rewrittenCount.ConstantValueOpt?.
Int32Value
== 0)
122
int size = sizeConst.
Int32Value
;
129
var count = countConst.
Int32Value
;
143
if (sizeConst?.
Int32Value
== 1)
Symbols\Compilation_WellKnownMembers.cs (4)
768
int constantVal = ignoreSymbolStoreDebuggingMode.GetConstantValue(ConstantFieldsInProgress.Empty, earlyDecodingWellKnownAttributes: false).
Int32Value
;
790
constantVal |= defaultDebuggingMode.GetConstantValue(ConstantFieldsInProgress.Empty, earlyDecodingWellKnownAttributes: false).
Int32Value
;
791
constantVal |= disableOptimizationsDebuggingMode.GetConstantValue(ConstantFieldsInProgress.Empty, earlyDecodingWellKnownAttributes: false).
Int32Value
;
802
constantVal |= enableEncDebuggingMode.GetConstantValue(ConstantFieldsInProgress.Empty, earlyDecodingWellKnownAttributes: false).
Int32Value
;
Symbols\Source\SourceFixedFieldSymbol.cs (1)
105
int int32Value = sizeConstant.
Int32Value
;
Utilities\ValueSetFactory.IntTC.cs (1)
65
public int FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0 : constantValue.
Int32Value
;
Utilities\ValueSetFactory.NintValueSet.cs (2)
74
bool IConstantValueSet.All(BinaryOperatorKind relation, ConstantValue value) => value.IsBad || All(relation, value.
Int32Value
);
85
bool IConstantValueSet.Any(BinaryOperatorKind relation, ConstantValue value) => value.IsBad || Any(relation, value.
Int32Value
);