11 references to ForEachArray
Microsoft.CodeAnalysis.CSharp (11)
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
227
(leftLocal.LocalSymbol.SynthesizedKind == SynthesizedLocalKind.
ForEachArray
&& leftLocal.LocalSymbol.Type.HasInlineArrayAttribute(out _) && leftLocal.LocalSymbol.Type.TryGetInlineArrayElementField() is object));
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (3)
615
LocalSymbol collectionTemp = _factory.SynthesizedLocal(collectionType, forEachSyntax, kind: SynthesizedLocalKind.
ForEachArray
, refKind: collectionTempRefKind);
909
LocalSymbol arrayVar = _factory.SynthesizedLocal(arrayType, syntax: forEachSyntax, kind: SynthesizedLocalKind.
ForEachArray
);
1065
LocalSymbol arrayVar = _factory.SynthesizedLocal(arrayType, syntax: forEachSyntax, kind: SynthesizedLocalKind.
ForEachArray
);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
245
(refLocal.SynthesizedKind == SynthesizedLocalKind.
ForEachArray
&&
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
320
(local.SynthesizedKind == SynthesizedLocalKind.
ForEachArray
&& local.Type.HasInlineArrayAttribute(out _) && local.Type.TryGetInlineArrayElementField() is object));
645
(leftLocal.SynthesizedKind == SynthesizedLocalKind.
ForEachArray
&& leftLocal.Type.HasInlineArrayAttribute(out _) && leftLocal.Type.TryGetInlineArrayElementField() is object));
673
SynthesizedLocalKind.
ForEachArray
=> awaitSyntax is CommonForEachStatementSyntax,
Lowering\StateMachineRewriter\RefInitializationHoister.cs (2)
75
(local.SynthesizedKind == SynthesizedLocalKind.
ForEachArray
&& local.Type.HasInlineArrayAttribute(out _) && local.Type.TryGetInlineArrayElementField() is object));
81
SynthesizedLocalKind.
ForEachArray
=> this._originalMethod.IsAsync || this._originalMethod.IsIterator,
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
175
(synthesizedKind == SynthesizedLocalKind.
ForEachArray
&& local.Type.HasInlineArrayAttribute(out _) && local.Type.TryGetInlineArrayElementField() is object));