1 write to Info
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
3832
Info
= info;
28 references to Info
Microsoft.CodeAnalysis (2)
Generated\Operations.Generated.cs (1)
10264
return new ForEachLoopOperation(Visit(internalOperation.LoopControlVariable), Visit(internalOperation.Collection), VisitArray(internalOperation.NextVariables), internalOperation.
Info
, internalOperation.IsAsynchronous, Visit(internalOperation.Body), internalOperation.Locals, internalOperation.ContinueLabel, internalOperation.ExitLabel, internalOperation.OwningSemanticModel, internalOperation.Syntax, internalOperation.IsImplicit);
Operations\ControlFlowGraphBuilder.cs (1)
4379
ForEachLoopOperationInfo? info = ((ForEachLoopOperation)operation).
Info
;
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (24)
IOperation\IOperationTests_IForEachLoopStatement.cs (24)
2813
Assert.Equal(2, op.
Info
.GetEnumeratorArguments.Length);
2814
Assert.Equal(3, op.
Info
.MoveNextArguments.Length);
2815
Assert.Equal(4, op.
Info
.DisposeArguments.Length);
2817
op.
Info
.PatternDisposeMethod.ToTestDisplayString());
2819
VerifyOperationTree(comp, op.
Info
.GetEnumeratorArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2824
VerifyOperationTree(comp, op.
Info
.GetEnumeratorArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2829
VerifyOperationTree(comp, op.
Info
.MoveNextArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2834
VerifyOperationTree(comp, op.
Info
.MoveNextArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2839
VerifyOperationTree(comp, op.
Info
.MoveNextArguments[2], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: r) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2844
VerifyOperationTree(comp, op.
Info
.DisposeArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2849
VerifyOperationTree(comp, op.
Info
.DisposeArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2854
VerifyOperationTree(comp, op.
Info
.DisposeArguments[2], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: xxx) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2859
VerifyOperationTree(comp, op.
Info
.DisposeArguments[3], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: f) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2945
Assert.Equal(2, op.
Info
.GetEnumeratorArguments.Length);
2946
Assert.Equal(2, op.
Info
.MoveNextArguments.Length);
2947
Assert.Equal(2, op.
Info
.DisposeArguments.Length);
2949
Assert.Equal("System.Threading.Tasks.ValueTask AsyncEnumerator.DisposeAsync([System.String s = null], [System.Int32 line = 0])", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
2951
VerifyOperationTree(comp, op.
Info
.GetEnumeratorArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2956
VerifyOperationTree(comp, op.
Info
.GetEnumeratorArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2961
VerifyOperationTree(comp, op.
Info
.MoveNextArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2966
VerifyOperationTree(comp, op.
Info
.MoveNextArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2971
VerifyOperationTree(comp, op.
Info
.DisposeArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2976
VerifyOperationTree(comp, op.
Info
.DisposeArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
3038
Assert.Null(op.
Info
.PatternDisposeMethod);
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (1)
658
ForEachLoopOperationInfo info = ((ForEachLoopOperation)operation).
Info
;
Compilation\TestOperationVisitor.cs (1)
336
ForEachLoopOperationInfo info = ((ForEachLoopOperation)operation).
Info
;