1 write to Info
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4205
Info
= info;
318 references to Info
Microsoft.CodeAnalysis (2)
Generated\Operations.Generated.cs (1)
10814
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)
4460
ForEachLoopOperationInfo? info = ((ForEachLoopOperation)operation).
Info
;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (290)
RefStructInterfacesTests.cs (290)
7584
Assert.False(op.
Info
.IsAsynchronous);
7585
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
7586
Assert.Empty(op.
Info
.GetEnumeratorArguments);
7587
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
7774
Assert.False(op.
Info
.IsAsynchronous);
7775
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
7776
Assert.Empty(op.
Info
.GetEnumeratorArguments);
7777
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
7994
Assert.False(op.
Info
.IsAsynchronous);
7995
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
7996
Assert.Empty(op.
Info
.GetEnumeratorArguments);
7997
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
8184
Assert.False(op.
Info
.IsAsynchronous);
8185
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
8186
Assert.Empty(op.
Info
.GetEnumeratorArguments);
8187
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
8377
Assert.False(op.
Info
.IsAsynchronous);
8378
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> IMyEnumerable<System.Int32>.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
8379
Assert.Empty(op.
Info
.GetEnumeratorArguments);
8380
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
8452
Assert.Null(op.
Info
);
8656
Assert.False(op.
Info
.IsAsynchronous);
8657
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
8658
Assert.Empty(op.
Info
.GetEnumeratorArguments);
8659
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
9029
Assert.False(op.
Info
.IsAsynchronous);
9030
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
9031
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
9032
Assert.Empty(op.
Info
.MoveNextArguments);
9033
AssertEx.Equal("System.Int32 S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
9034
Assert.True(op.
Info
.CurrentArguments.IsDefault);
9035
Assert.True(op.
Info
.NeedsDispose);
9036
Assert.True(op.
Info
.KnownToImplementIDisposable);
9037
AssertEx.Equal("void S2.Dispose()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
9038
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
9233
Assert.False(op.
Info
.IsAsynchronous);
9234
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
9235
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
9236
Assert.Empty(op.
Info
.MoveNextArguments);
9237
AssertEx.Equal("System.Int32 S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
9238
Assert.True(op.
Info
.CurrentArguments.IsDefault);
9239
Assert.True(op.
Info
.NeedsDispose);
9240
Assert.True(op.
Info
.KnownToImplementIDisposable);
9241
AssertEx.Equal("void S2.Dispose()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
9242
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
9397
Assert.Null(op.
Info
);
9597
Assert.False(op.
Info
.IsAsynchronous);
9598
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
9599
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
9600
Assert.Empty(op.
Info
.MoveNextArguments);
9601
AssertEx.Equal("System.Int32 S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
9602
Assert.True(op.
Info
.CurrentArguments.IsDefault);
9603
Assert.True(op.
Info
.NeedsDispose);
9604
Assert.True(op.
Info
.KnownToImplementIDisposable);
9605
Assert.Null(op.
Info
.PatternDisposeMethod);
9606
Assert.True(op.
Info
.DisposeArguments.IsDefault);
9821
Assert.False(op.
Info
.IsAsynchronous);
9822
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
9823
AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
9824
Assert.Empty(op.
Info
.MoveNextArguments);
9825
AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
9826
Assert.True(op.
Info
.CurrentArguments.IsDefault);
9827
Assert.True(op.
Info
.NeedsDispose);
9828
Assert.True(op.
Info
.KnownToImplementIDisposable);
9829
Assert.Null(op.
Info
.PatternDisposeMethod);
9830
Assert.True(op.
Info
.DisposeArguments.IsDefault);
10030
Assert.False(op.
Info
.IsAsynchronous);
10031
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
10032
AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
10033
Assert.Empty(op.
Info
.MoveNextArguments);
10034
AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
10035
Assert.True(op.
Info
.CurrentArguments.IsDefault);
10036
Assert.True(op.
Info
.NeedsDispose);
10037
Assert.True(op.
Info
.KnownToImplementIDisposable);
10038
Assert.Null(op.
Info
.PatternDisposeMethod);
10039
Assert.True(op.
Info
.DisposeArguments.IsDefault);
10257
Assert.False(op.
Info
.IsAsynchronous);
10258
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
10259
AssertEx.Equal("System.Boolean IMyEnumerator<System.Int32>.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
10260
Assert.Empty(op.
Info
.MoveNextArguments);
10261
AssertEx.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
10262
Assert.True(op.
Info
.CurrentArguments.IsDefault);
10263
Assert.True(op.
Info
.NeedsDispose);
10264
Assert.True(op.
Info
.KnownToImplementIDisposable);
10265
Assert.Null(op.
Info
.PatternDisposeMethod);
10266
Assert.True(op.
Info
.DisposeArguments.IsDefault);
10359
Assert.Null(op.
Info
);
10454
Assert.Null(op.
Info
);
10640
Assert.False(op.
Info
.IsAsynchronous);
10641
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
10642
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
10643
Assert.Empty(op.
Info
.MoveNextArguments);
10644
AssertEx.Equal("System.Int32 S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
10645
Assert.True(op.
Info
.CurrentArguments.IsDefault);
10646
Assert.True(op.
Info
.NeedsDispose);
10647
Assert.True(op.
Info
.KnownToImplementIDisposable);
10648
AssertEx.Equal("void S2.Dispose()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
10649
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
10837
Assert.False(op.
Info
.IsAsynchronous);
10838
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
10839
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
10840
Assert.Empty(op.
Info
.MoveNextArguments);
10841
AssertEx.Equal("System.Int32 S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
10842
Assert.True(op.
Info
.CurrentArguments.IsDefault);
10843
Assert.True(op.
Info
.NeedsDispose);
10844
Assert.True(op.
Info
.KnownToImplementIDisposable);
10845
AssertEx.Equal("void S2.Dispose()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
10846
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
11078
Assert.False(op.
Info
.IsAsynchronous);
11079
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
11080
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
11081
Assert.Empty(op.
Info
.MoveNextArguments);
11082
AssertEx.Equal("System.Int32 S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
11083
Assert.True(op.
Info
.CurrentArguments.IsDefault);
11084
Assert.True(op.
Info
.NeedsDispose);
11085
Assert.True(op.
Info
.KnownToImplementIDisposable);
11086
Assert.Null(op.
Info
.PatternDisposeMethod);
11087
Assert.True(op.
Info
.DisposeArguments.IsDefault);
11305
Assert.False(op.
Info
.IsAsynchronous);
11306
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
11307
AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
11308
Assert.Empty(op.
Info
.MoveNextArguments);
11309
AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
11310
Assert.True(op.
Info
.CurrentArguments.IsDefault);
11311
Assert.True(op.
Info
.NeedsDispose);
11312
Assert.True(op.
Info
.KnownToImplementIDisposable);
11313
Assert.Null(op.
Info
.PatternDisposeMethod);
11314
Assert.True(op.
Info
.DisposeArguments.IsDefault);
11517
Assert.False(op.
Info
.IsAsynchronous);
11518
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
11519
AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
11520
Assert.Empty(op.
Info
.MoveNextArguments);
11521
AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
11522
Assert.True(op.
Info
.CurrentArguments.IsDefault);
11523
Assert.True(op.
Info
.NeedsDispose);
11524
Assert.True(op.
Info
.KnownToImplementIDisposable);
11525
Assert.Null(op.
Info
.PatternDisposeMethod);
11526
Assert.True(op.
Info
.DisposeArguments.IsDefault);
11617
Assert.False(op.
Info
.IsAsynchronous);
11618
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
11619
AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
11620
Assert.Empty(op.
Info
.MoveNextArguments);
11621
AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
11622
Assert.True(op.
Info
.CurrentArguments.IsDefault);
11623
Assert.False(op.
Info
.NeedsDispose);
11624
Assert.False(op.
Info
.KnownToImplementIDisposable);
11625
Assert.Null(op.
Info
.PatternDisposeMethod);
11626
Assert.True(op.
Info
.DisposeArguments.IsDefault);
11712
Assert.False(op.
Info
.IsAsynchronous);
11713
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
11714
AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
11715
Assert.Empty(op.
Info
.MoveNextArguments);
11716
AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
11717
Assert.True(op.
Info
.CurrentArguments.IsDefault);
11718
Assert.False(op.
Info
.NeedsDispose);
11719
Assert.False(op.
Info
.KnownToImplementIDisposable);
11720
Assert.Null(op.
Info
.PatternDisposeMethod);
11721
Assert.True(op.
Info
.DisposeArguments.IsDefault);
14665
Assert.True(op.
Info
.IsAsynchronous);
14666
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
14667
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
14668
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
15006
Assert.True(op.
Info
.IsAsynchronous);
15007
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
15008
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
15009
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
15373
Assert.True(op.
Info
.IsAsynchronous);
15374
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
15375
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
15376
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
15716
Assert.True(op.
Info
.IsAsynchronous);
15717
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
15718
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
15719
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
16064
Assert.True(op.
Info
.IsAsynchronous);
16065
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
16066
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
16067
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
16141
Assert.Null(op.
Info
);
16502
Assert.True(op.
Info
.IsAsynchronous);
16503
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
16504
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
16505
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
17166
Assert.True(op.
Info
.IsAsynchronous);
17167
Assert.True(op.
Info
.NeedsDispose);
17168
Assert.True(op.
Info
.KnownToImplementIDisposable);
17169
AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
17170
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
17231
Assert.True(op.
Info
.IsAsynchronous);
17232
Assert.True(op.
Info
.NeedsDispose);
17233
Assert.True(op.
Info
.KnownToImplementIDisposable);
17234
AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
17235
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
17296
Assert.True(op.
Info
.IsAsynchronous);
17297
Assert.True(op.
Info
.NeedsDispose);
17298
Assert.True(op.
Info
.KnownToImplementIDisposable);
17299
Assert.Null(op.
Info
.PatternDisposeMethod);
17300
Assert.True(op.
Info
.DisposeArguments.IsDefault);
17380
Assert.True(op.
Info
.IsAsynchronous);
17381
Assert.True(op.
Info
.NeedsDispose);
17382
Assert.True(op.
Info
.KnownToImplementIDisposable);
17383
AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
17384
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
17468
Assert.True(op.
Info
.IsAsynchronous);
17469
Assert.True(op.
Info
.NeedsDispose);
17470
Assert.False(op.
Info
.KnownToImplementIDisposable);
17471
AssertEx.Equal("System.Threading.Tasks.ValueTask IMyAsyncDisposable.DisposeAsync()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
17472
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
17561
Assert.True(op.
Info
.IsAsynchronous);
17562
Assert.False(op.
Info
.NeedsDispose);
17563
Assert.False(op.
Info
.KnownToImplementIDisposable);
17564
Assert.Null(op.
Info
.PatternDisposeMethod);
17565
Assert.True(op.
Info
.DisposeArguments.IsDefault);
17658
Assert.True(op.
Info
.IsAsynchronous);
17659
Assert.True(op.
Info
.NeedsDispose);
17660
Assert.True(op.
Info
.KnownToImplementIDisposable);
17661
Assert.Null(op.
Info
.PatternDisposeMethod);
17662
Assert.True(op.
Info
.DisposeArguments.IsDefault);
17742
Assert.True(op.
Info
.IsAsynchronous);
17743
Assert.False(op.
Info
.NeedsDispose);
17744
Assert.False(op.
Info
.KnownToImplementIDisposable);
17745
Assert.Null(op.
Info
.PatternDisposeMethod);
17746
Assert.True(op.
Info
.DisposeArguments.IsDefault);
18169
Assert.False(op.
Info
.IsAsynchronous);
18170
AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
18171
Assert.Empty(op.
Info
.GetEnumeratorArguments);
18172
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
18366
Assert.False(op.
Info
.IsAsynchronous);
18367
AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
18368
Assert.Empty(op.
Info
.GetEnumeratorArguments);
18369
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
18590
Assert.False(op.
Info
.IsAsynchronous);
18591
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
18592
Assert.Empty(op.
Info
.GetEnumeratorArguments);
18593
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
18786
Assert.False(op.
Info
.IsAsynchronous);
18787
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
18788
Assert.Empty(op.
Info
.GetEnumeratorArguments);
18789
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
18987
Assert.False(op.
Info
.IsAsynchronous);
18988
AssertEx.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
18989
Assert.Empty(op.
Info
.GetEnumeratorArguments);
18990
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
19061
Assert.Null(op.
Info
);
19271
Assert.False(op.
Info
.IsAsynchronous);
19272
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
19273
Assert.Empty(op.
Info
.GetEnumeratorArguments);
19274
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
19608
Assert.False(op.
Info
.IsAsynchronous);
19609
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
19610
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
19611
Assert.Empty(op.
Info
.MoveNextArguments);
19612
AssertEx.Equal("System.Object S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
19613
Assert.True(op.
Info
.CurrentArguments.IsDefault);
19614
Assert.False(op.
Info
.NeedsDispose);
19615
Assert.False(op.
Info
.KnownToImplementIDisposable);
19616
Assert.Null(op.
Info
.PatternDisposeMethod);
19617
Assert.True(op.
Info
.DisposeArguments.IsDefault);
19779
Assert.False(op.
Info
.IsAsynchronous);
19780
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
19781
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
19782
Assert.Empty(op.
Info
.MoveNextArguments);
19783
AssertEx.Equal("System.Object S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
19784
Assert.True(op.
Info
.CurrentArguments.IsDefault);
19785
Assert.False(op.
Info
.NeedsDispose);
19786
Assert.False(op.
Info
.KnownToImplementIDisposable);
19787
Assert.Null(op.
Info
.PatternDisposeMethod);
19788
Assert.True(op.
Info
.DisposeArguments.IsDefault);
19936
Assert.Null(op.
Info
);
20104
Assert.False(op.
Info
.IsAsynchronous);
20105
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
20106
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
20107
Assert.Empty(op.
Info
.MoveNextArguments);
20108
AssertEx.Equal("System.Object S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
20109
Assert.True(op.
Info
.CurrentArguments.IsDefault);
20110
Assert.False(op.
Info
.NeedsDispose);
20111
Assert.False(op.
Info
.KnownToImplementIDisposable);
20112
Assert.Null(op.
Info
.PatternDisposeMethod);
20113
Assert.True(op.
Info
.DisposeArguments.IsDefault);
20272
Assert.False(op.
Info
.IsAsynchronous);
20273
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
20274
AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
20275
Assert.Empty(op.
Info
.MoveNextArguments);
20276
AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
20277
Assert.True(op.
Info
.CurrentArguments.IsDefault);
20278
Assert.True(op.
Info
.NeedsDispose);
20279
Assert.True(op.
Info
.KnownToImplementIDisposable);
20280
Assert.Null(op.
Info
.PatternDisposeMethod);
20281
Assert.True(op.
Info
.DisposeArguments.IsDefault);
20376
Assert.Null(op.
Info
);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (24)
IOperation\IOperationTests_IForEachLoopStatement.cs (24)
2809
Assert.Equal(2, op.
Info
.GetEnumeratorArguments.Length);
2810
Assert.Equal(3, op.
Info
.MoveNextArguments.Length);
2811
Assert.Equal(4, op.
Info
.DisposeArguments.Length);
2813
op.
Info
.PatternDisposeMethod.ToTestDisplayString());
2815
VerifyOperationTree(comp, op.
Info
.GetEnumeratorArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2820
VerifyOperationTree(comp, op.
Info
.GetEnumeratorArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2825
VerifyOperationTree(comp, op.
Info
.MoveNextArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2830
VerifyOperationTree(comp, op.
Info
.MoveNextArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2835
VerifyOperationTree(comp, op.
Info
.MoveNextArguments[2], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: r) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2840
VerifyOperationTree(comp, op.
Info
.DisposeArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2845
VerifyOperationTree(comp, op.
Info
.DisposeArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2850
VerifyOperationTree(comp, op.
Info
.DisposeArguments[2], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: xxx) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2855
VerifyOperationTree(comp, op.
Info
.DisposeArguments[3], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: f) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2941
Assert.Equal(2, op.
Info
.GetEnumeratorArguments.Length);
2942
Assert.Equal(2, op.
Info
.MoveNextArguments.Length);
2943
Assert.Equal(2, op.
Info
.DisposeArguments.Length);
2945
Assert.Equal("System.Threading.Tasks.ValueTask AsyncEnumerator.DisposeAsync([System.String s = null], [System.Int32 line = 0])", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
2947
VerifyOperationTree(comp, op.
Info
.GetEnumeratorArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2952
VerifyOperationTree(comp, op.
Info
.GetEnumeratorArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2957
VerifyOperationTree(comp, op.
Info
.MoveNextArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2962
VerifyOperationTree(comp, op.
Info
.MoveNextArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2967
VerifyOperationTree(comp, op.
Info
.DisposeArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
2972
VerifyOperationTree(comp, op.
Info
.DisposeArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }')
3034
Assert.Null(op.
Info
.PatternDisposeMethod);
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (1)
640
ForEachLoopOperationInfo info = ((ForEachLoopOperation)operation).
Info
;
Compilation\TestOperationVisitor.cs (1)
337
ForEachLoopOperationInfo info = ((ForEachLoopOperation)operation).
Info
;