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);
14267
Assert.True(op.
Info
.IsAsynchronous);
14268
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
14269
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
14270
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
14608
Assert.True(op.
Info
.IsAsynchronous);
14609
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
14610
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
14611
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
14975
Assert.True(op.
Info
.IsAsynchronous);
14976
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());
14977
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
14978
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
15318
Assert.True(op.
Info
.IsAsynchronous);
15319
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());
15320
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
15321
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
15666
Assert.True(op.
Info
.IsAsynchronous);
15667
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
15668
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
15669
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
15743
Assert.Null(op.
Info
);
16104
Assert.True(op.
Info
.IsAsynchronous);
16105
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());
16106
Assert.Equal(1, op.
Info
.GetEnumeratorArguments.Length);
16107
AssertEx.Equal("System.Int32", op.
Info
.ElementType.ToTestDisplayString());
16768
Assert.True(op.
Info
.IsAsynchronous);
16769
Assert.True(op.
Info
.NeedsDispose);
16770
Assert.True(op.
Info
.KnownToImplementIDisposable);
16771
AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
16772
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
16833
Assert.True(op.
Info
.IsAsynchronous);
16834
Assert.True(op.
Info
.NeedsDispose);
16835
Assert.True(op.
Info
.KnownToImplementIDisposable);
16836
AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
16837
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
16898
Assert.True(op.
Info
.IsAsynchronous);
16899
Assert.True(op.
Info
.NeedsDispose);
16900
Assert.True(op.
Info
.KnownToImplementIDisposable);
16901
Assert.Null(op.
Info
.PatternDisposeMethod);
16902
Assert.True(op.
Info
.DisposeArguments.IsDefault);
16982
Assert.True(op.
Info
.IsAsynchronous);
16983
Assert.True(op.
Info
.NeedsDispose);
16984
Assert.True(op.
Info
.KnownToImplementIDisposable);
16985
AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
16986
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
17070
Assert.True(op.
Info
.IsAsynchronous);
17071
Assert.True(op.
Info
.NeedsDispose);
17072
Assert.False(op.
Info
.KnownToImplementIDisposable);
17073
AssertEx.Equal("System.Threading.Tasks.ValueTask IMyAsyncDisposable.DisposeAsync()", op.
Info
.PatternDisposeMethod.ToTestDisplayString());
17074
Assert.True(op.
Info
.DisposeArguments.IsEmpty);
17163
Assert.True(op.
Info
.IsAsynchronous);
17164
Assert.False(op.
Info
.NeedsDispose);
17165
Assert.False(op.
Info
.KnownToImplementIDisposable);
17166
Assert.Null(op.
Info
.PatternDisposeMethod);
17167
Assert.True(op.
Info
.DisposeArguments.IsDefault);
17260
Assert.True(op.
Info
.IsAsynchronous);
17261
Assert.True(op.
Info
.NeedsDispose);
17262
Assert.True(op.
Info
.KnownToImplementIDisposable);
17263
Assert.Null(op.
Info
.PatternDisposeMethod);
17264
Assert.True(op.
Info
.DisposeArguments.IsDefault);
17344
Assert.True(op.
Info
.IsAsynchronous);
17345
Assert.False(op.
Info
.NeedsDispose);
17346
Assert.False(op.
Info
.KnownToImplementIDisposable);
17347
Assert.Null(op.
Info
.PatternDisposeMethod);
17348
Assert.True(op.
Info
.DisposeArguments.IsDefault);
17771
Assert.False(op.
Info
.IsAsynchronous);
17772
AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
17773
Assert.Empty(op.
Info
.GetEnumeratorArguments);
17774
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
17968
Assert.False(op.
Info
.IsAsynchronous);
17969
AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
17970
Assert.Empty(op.
Info
.GetEnumeratorArguments);
17971
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
18192
Assert.False(op.
Info
.IsAsynchronous);
18193
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
18194
Assert.Empty(op.
Info
.GetEnumeratorArguments);
18195
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
18388
Assert.False(op.
Info
.IsAsynchronous);
18389
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
18390
Assert.Empty(op.
Info
.GetEnumeratorArguments);
18391
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
18589
Assert.False(op.
Info
.IsAsynchronous);
18590
AssertEx.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
18591
Assert.Empty(op.
Info
.GetEnumeratorArguments);
18592
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
18663
Assert.Null(op.
Info
);
18873
Assert.False(op.
Info
.IsAsynchronous);
18874
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.
Info
.GetEnumeratorMethod.ToTestDisplayString());
18875
Assert.Empty(op.
Info
.GetEnumeratorArguments);
18876
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
19210
Assert.False(op.
Info
.IsAsynchronous);
19211
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
19212
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
19213
Assert.Empty(op.
Info
.MoveNextArguments);
19214
AssertEx.Equal("System.Object S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
19215
Assert.True(op.
Info
.CurrentArguments.IsDefault);
19216
Assert.False(op.
Info
.NeedsDispose);
19217
Assert.False(op.
Info
.KnownToImplementIDisposable);
19218
Assert.Null(op.
Info
.PatternDisposeMethod);
19219
Assert.True(op.
Info
.DisposeArguments.IsDefault);
19381
Assert.False(op.
Info
.IsAsynchronous);
19382
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
19383
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
19384
Assert.Empty(op.
Info
.MoveNextArguments);
19385
AssertEx.Equal("System.Object S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
19386
Assert.True(op.
Info
.CurrentArguments.IsDefault);
19387
Assert.False(op.
Info
.NeedsDispose);
19388
Assert.False(op.
Info
.KnownToImplementIDisposable);
19389
Assert.Null(op.
Info
.PatternDisposeMethod);
19390
Assert.True(op.
Info
.DisposeArguments.IsDefault);
19538
Assert.Null(op.
Info
);
19706
Assert.False(op.
Info
.IsAsynchronous);
19707
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
19708
AssertEx.Equal("System.Boolean S2.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
19709
Assert.Empty(op.
Info
.MoveNextArguments);
19710
AssertEx.Equal("System.Object S2.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
19711
Assert.True(op.
Info
.CurrentArguments.IsDefault);
19712
Assert.False(op.
Info
.NeedsDispose);
19713
Assert.False(op.
Info
.KnownToImplementIDisposable);
19714
Assert.Null(op.
Info
.PatternDisposeMethod);
19715
Assert.True(op.
Info
.DisposeArguments.IsDefault);
19874
Assert.False(op.
Info
.IsAsynchronous);
19875
AssertEx.Equal("System.Object", op.
Info
.ElementType.ToTestDisplayString());
19876
AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.
Info
.MoveNextMethod.ToTestDisplayString());
19877
Assert.Empty(op.
Info
.MoveNextArguments);
19878
AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", op.
Info
.CurrentProperty.ToTestDisplayString());
19879
Assert.True(op.
Info
.CurrentArguments.IsDefault);
19880
Assert.True(op.
Info
.NeedsDispose);
19881
Assert.True(op.
Info
.KnownToImplementIDisposable);
19882
Assert.Null(op.
Info
.PatternDisposeMethod);
19883
Assert.True(op.
Info
.DisposeArguments.IsDefault);
19978
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
;