59 references to Count
System.Linq.Expressions (59)
System\Linq\Expressions\Interpreter\BranchLabel.cs (1)
56
_targetIndex = instructions.
Count
;
System\Linq\Expressions\Interpreter\InstructionList.cs (3)
239
Debug.Assert(
Count
> 0);
240
_debugCookies.Add(new KeyValuePair<int, object?>(
Count
- 1, cookie));
982
label.AddBranch(this,
Count
- 1);
System\Linq\Expressions\Interpreter\LightCompiler.cs (54)
531
int start = _instructions.
Count
;
566
_locals.UndefineLocal(local, _instructions.
Count
);
626
local = _locals.DefineLocal(Expression.Parameter(node.Right.Type), _instructions.
Count
);
646
_locals.UndefineLocal(local, _instructions.
Count
);
674
int start = _instructions.
Count
;
681
_locals.UndefineLocal(local, _instructions.
Count
);
705
int start = _instructions.
Count
;
712
_locals.UndefineLocal(local, _instructions.
Count
);
769
LocalDefinition leftTemp = _locals.DefineLocal(Expression.Parameter(node.Left.Type), _instructions.
Count
);
773
LocalDefinition rightTemp = _locals.DefineLocal(Expression.Parameter(node.Right.Type), _instructions.
Count
);
883
_locals.UndefineLocal(leftTemp, _instructions.
Count
);
884
_locals.UndefineLocal(rightTemp, _instructions.
Count
);
1047
LocalDefinition opTemp = _locals.DefineLocal(Expression.Parameter(operandType), _instructions.
Count
);
1100
_locals.UndefineLocal(opTemp, _instructions.
Count
);
1378
LocalDefinition result = _locals.DefineLocal(Expression.Parameter(node.Left.Type), _instructions.
Count
);
1379
LocalDefinition leftTemp = _locals.DefineLocal(Expression.Parameter(node.Left.Type), _instructions.
Count
);
1403
LocalDefinition rightTemp = _locals.DefineLocal(Expression.Parameter(node.Right.Type), _instructions.
Count
);
1447
_locals.UndefineLocal(leftTemp, _instructions.
Count
);
1448
_locals.UndefineLocal(rightTemp, _instructions.
Count
);
1449
_locals.UndefineLocal(result, _instructions.
Count
);
1599
LocalDefinition temp = _locals.DefineLocal(Expression.Parameter(node.SwitchValue.Type), _instructions.
Count
);
1625
_locals.UndefineLocal(temp, _instructions.
Count
);
1635
int switchIndex = _instructions.
Count
;
1652
int caseOffset = _instructions.
Count
- switchIndex;
1677
int switchIndex = _instructions.
Count
;
1696
int caseOffset = _instructions.
Count
- switchIndex;
1975
int tryStart = _instructions.
Count
;
1997
int tryEnd = _instructions.
Count
;
2011
LocalDefinition local = _locals.DefineLocal(parameter, _instructions.
Count
);
2024
int filterStart = _instructions.
Count
;
2030
filter = new ExceptionFilter(filterLabel, filterStart, _instructions.
Count
);
2052
int handlerStart = _instructions.
Count
;
2062
exHandlers.Add(new ExceptionHandler(handlerLabel, handlerStart, _instructions.
Count
, handler.Test, filter));
2065
_locals.UndefineLocal(local, _instructions.
Count
);
2081
startOfFinally.TargetIndex, _instructions.
Count
,
2104
int tryStart = _instructions.
Count
;
2113
int tryEnd = _instructions.
Count
;
2127
enterTryInstr.SetTryHandler(new TryFaultHandler(tryStart, tryEnd, startOfFault.TargetIndex, _instructions.
Count
));
2205
LocalDefinition left = _locals.DefineLocal(Expression.Parameter(array.Type, nameof(array)), _instructions.
Count
);
2206
LocalDefinition right = _locals.DefineLocal(Expression.Parameter(index.Type, nameof(index)), _instructions.
Count
);
2270
objTmp = _locals.DefineLocal(Expression.Parameter(indexNode.Object.Type), _instructions.
Count
);
2283
LocalDefinition argTmp = _locals.DefineLocal(Expression.Parameter(arg.Type), _instructions.
Count
);
2308
memberTemp = _locals.DefineLocal(Expression.Parameter(member.Expression.Type, "member"), _instructions.
Count
);
2360
LocalDefinition objTmp = _locals.DefineLocal(Expression.Parameter(array.Type), _instructions.
Count
);
2371
LocalDefinition argTmp = _locals.DefineLocal(Expression.Parameter(arg.Type), _instructions.
Count
);
2549
int start = _instructions.
Count
;
2643
LocalDefinition local = _locals.DefineLocal(temp, _instructions.
Count
);
2650
_locals.UndefineLocal(local, _instructions.
Count
);
3178
locals.UndefineLocal(_array, instructions.
Count
);
3179
locals.UndefineLocal(_index, instructions.
Count
);
3205
locals.UndefineLocal(_object.GetValueOrDefault(), instructions.
Count
);
3241
locals.UndefineLocal(_object.GetValueOrDefault(), instructions.
Count
);
3286
locals.UndefineLocal(_obj.GetValueOrDefault(), instructions.
Count
);
3291
locals.UndefineLocal(_args[i], instructions.
Count
);
System\Linq\Expressions\Interpreter\LocalVariables.cs (1)
119
for (int i = scope.Start; i < scope.Stop && i < instructions.
Count
; i++)