1 write to Info
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4205Info = info;
318 references to Info
Microsoft.CodeAnalysis (2)
Generated\Operations.Generated.cs (1)
10814return 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)
4460ForEachLoopOperationInfo? info = ((ForEachLoopOperation)operation).Info;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (290)
RefStructInterfacesTests.cs (290)
7584Assert.False(op.Info.IsAsynchronous); 7585AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 7586Assert.Empty(op.Info.GetEnumeratorArguments); 7587AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 7774Assert.False(op.Info.IsAsynchronous); 7775AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 7776Assert.Empty(op.Info.GetEnumeratorArguments); 7777AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 7994Assert.False(op.Info.IsAsynchronous); 7995AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 7996Assert.Empty(op.Info.GetEnumeratorArguments); 7997AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 8184Assert.False(op.Info.IsAsynchronous); 8185AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 8186Assert.Empty(op.Info.GetEnumeratorArguments); 8187AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 8377Assert.False(op.Info.IsAsynchronous); 8378AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> IMyEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 8379Assert.Empty(op.Info.GetEnumeratorArguments); 8380AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 8452Assert.Null(op.Info); 8656Assert.False(op.Info.IsAsynchronous); 8657AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 8658Assert.Empty(op.Info.GetEnumeratorArguments); 8659AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 9029Assert.False(op.Info.IsAsynchronous); 9030AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 9031AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 9032Assert.Empty(op.Info.MoveNextArguments); 9033AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 9034Assert.True(op.Info.CurrentArguments.IsDefault); 9035Assert.True(op.Info.NeedsDispose); 9036Assert.True(op.Info.KnownToImplementIDisposable); 9037AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 9038Assert.True(op.Info.DisposeArguments.IsEmpty); 9233Assert.False(op.Info.IsAsynchronous); 9234AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 9235AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 9236Assert.Empty(op.Info.MoveNextArguments); 9237AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 9238Assert.True(op.Info.CurrentArguments.IsDefault); 9239Assert.True(op.Info.NeedsDispose); 9240Assert.True(op.Info.KnownToImplementIDisposable); 9241AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 9242Assert.True(op.Info.DisposeArguments.IsEmpty); 9397Assert.Null(op.Info); 9597Assert.False(op.Info.IsAsynchronous); 9598AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 9599AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 9600Assert.Empty(op.Info.MoveNextArguments); 9601AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 9602Assert.True(op.Info.CurrentArguments.IsDefault); 9603Assert.True(op.Info.NeedsDispose); 9604Assert.True(op.Info.KnownToImplementIDisposable); 9605Assert.Null(op.Info.PatternDisposeMethod); 9606Assert.True(op.Info.DisposeArguments.IsDefault); 9821Assert.False(op.Info.IsAsynchronous); 9822AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 9823AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 9824Assert.Empty(op.Info.MoveNextArguments); 9825AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 9826Assert.True(op.Info.CurrentArguments.IsDefault); 9827Assert.True(op.Info.NeedsDispose); 9828Assert.True(op.Info.KnownToImplementIDisposable); 9829Assert.Null(op.Info.PatternDisposeMethod); 9830Assert.True(op.Info.DisposeArguments.IsDefault); 10030Assert.False(op.Info.IsAsynchronous); 10031AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 10032AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 10033Assert.Empty(op.Info.MoveNextArguments); 10034AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10035Assert.True(op.Info.CurrentArguments.IsDefault); 10036Assert.True(op.Info.NeedsDispose); 10037Assert.True(op.Info.KnownToImplementIDisposable); 10038Assert.Null(op.Info.PatternDisposeMethod); 10039Assert.True(op.Info.DisposeArguments.IsDefault); 10257Assert.False(op.Info.IsAsynchronous); 10258AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 10259AssertEx.Equal("System.Boolean IMyEnumerator<System.Int32>.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 10260Assert.Empty(op.Info.MoveNextArguments); 10261AssertEx.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10262Assert.True(op.Info.CurrentArguments.IsDefault); 10263Assert.True(op.Info.NeedsDispose); 10264Assert.True(op.Info.KnownToImplementIDisposable); 10265Assert.Null(op.Info.PatternDisposeMethod); 10266Assert.True(op.Info.DisposeArguments.IsDefault); 10359Assert.Null(op.Info); 10454Assert.Null(op.Info); 10640Assert.False(op.Info.IsAsynchronous); 10641AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 10642AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 10643Assert.Empty(op.Info.MoveNextArguments); 10644AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10645Assert.True(op.Info.CurrentArguments.IsDefault); 10646Assert.True(op.Info.NeedsDispose); 10647Assert.True(op.Info.KnownToImplementIDisposable); 10648AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 10649Assert.True(op.Info.DisposeArguments.IsEmpty); 10837Assert.False(op.Info.IsAsynchronous); 10838AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 10839AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 10840Assert.Empty(op.Info.MoveNextArguments); 10841AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10842Assert.True(op.Info.CurrentArguments.IsDefault); 10843Assert.True(op.Info.NeedsDispose); 10844Assert.True(op.Info.KnownToImplementIDisposable); 10845AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 10846Assert.True(op.Info.DisposeArguments.IsEmpty); 11078Assert.False(op.Info.IsAsynchronous); 11079AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 11080AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 11081Assert.Empty(op.Info.MoveNextArguments); 11082AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11083Assert.True(op.Info.CurrentArguments.IsDefault); 11084Assert.True(op.Info.NeedsDispose); 11085Assert.True(op.Info.KnownToImplementIDisposable); 11086Assert.Null(op.Info.PatternDisposeMethod); 11087Assert.True(op.Info.DisposeArguments.IsDefault); 11305Assert.False(op.Info.IsAsynchronous); 11306AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 11307AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 11308Assert.Empty(op.Info.MoveNextArguments); 11309AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11310Assert.True(op.Info.CurrentArguments.IsDefault); 11311Assert.True(op.Info.NeedsDispose); 11312Assert.True(op.Info.KnownToImplementIDisposable); 11313Assert.Null(op.Info.PatternDisposeMethod); 11314Assert.True(op.Info.DisposeArguments.IsDefault); 11517Assert.False(op.Info.IsAsynchronous); 11518AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 11519AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 11520Assert.Empty(op.Info.MoveNextArguments); 11521AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11522Assert.True(op.Info.CurrentArguments.IsDefault); 11523Assert.True(op.Info.NeedsDispose); 11524Assert.True(op.Info.KnownToImplementIDisposable); 11525Assert.Null(op.Info.PatternDisposeMethod); 11526Assert.True(op.Info.DisposeArguments.IsDefault); 11617Assert.False(op.Info.IsAsynchronous); 11618AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 11619AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 11620Assert.Empty(op.Info.MoveNextArguments); 11621AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11622Assert.True(op.Info.CurrentArguments.IsDefault); 11623Assert.False(op.Info.NeedsDispose); 11624Assert.False(op.Info.KnownToImplementIDisposable); 11625Assert.Null(op.Info.PatternDisposeMethod); 11626Assert.True(op.Info.DisposeArguments.IsDefault); 11712Assert.False(op.Info.IsAsynchronous); 11713AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 11714AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 11715Assert.Empty(op.Info.MoveNextArguments); 11716AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11717Assert.True(op.Info.CurrentArguments.IsDefault); 11718Assert.False(op.Info.NeedsDispose); 11719Assert.False(op.Info.KnownToImplementIDisposable); 11720Assert.Null(op.Info.PatternDisposeMethod); 11721Assert.True(op.Info.DisposeArguments.IsDefault); 14267Assert.True(op.Info.IsAsynchronous); 14268AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 14269Assert.Equal(1, op.Info.GetEnumeratorArguments.Length); 14270AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 14608Assert.True(op.Info.IsAsynchronous); 14609AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 14610Assert.Equal(1, op.Info.GetEnumeratorArguments.Length); 14611AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 14975Assert.True(op.Info.IsAsynchronous); 14976AssertEx.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()); 14977Assert.Equal(1, op.Info.GetEnumeratorArguments.Length); 14978AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 15318Assert.True(op.Info.IsAsynchronous); 15319AssertEx.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()); 15320Assert.Equal(1, op.Info.GetEnumeratorArguments.Length); 15321AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 15666Assert.True(op.Info.IsAsynchronous); 15667AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 15668Assert.Equal(1, op.Info.GetEnumeratorArguments.Length); 15669AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 15743Assert.Null(op.Info); 16104Assert.True(op.Info.IsAsynchronous); 16105AssertEx.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()); 16106Assert.Equal(1, op.Info.GetEnumeratorArguments.Length); 16107AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString()); 16768Assert.True(op.Info.IsAsynchronous); 16769Assert.True(op.Info.NeedsDispose); 16770Assert.True(op.Info.KnownToImplementIDisposable); 16771AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 16772Assert.True(op.Info.DisposeArguments.IsEmpty); 16833Assert.True(op.Info.IsAsynchronous); 16834Assert.True(op.Info.NeedsDispose); 16835Assert.True(op.Info.KnownToImplementIDisposable); 16836AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 16837Assert.True(op.Info.DisposeArguments.IsEmpty); 16898Assert.True(op.Info.IsAsynchronous); 16899Assert.True(op.Info.NeedsDispose); 16900Assert.True(op.Info.KnownToImplementIDisposable); 16901Assert.Null(op.Info.PatternDisposeMethod); 16902Assert.True(op.Info.DisposeArguments.IsDefault); 16982Assert.True(op.Info.IsAsynchronous); 16983Assert.True(op.Info.NeedsDispose); 16984Assert.True(op.Info.KnownToImplementIDisposable); 16985AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 16986Assert.True(op.Info.DisposeArguments.IsEmpty); 17070Assert.True(op.Info.IsAsynchronous); 17071Assert.True(op.Info.NeedsDispose); 17072Assert.False(op.Info.KnownToImplementIDisposable); 17073AssertEx.Equal("System.Threading.Tasks.ValueTask IMyAsyncDisposable.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString()); 17074Assert.True(op.Info.DisposeArguments.IsEmpty); 17163Assert.True(op.Info.IsAsynchronous); 17164Assert.False(op.Info.NeedsDispose); 17165Assert.False(op.Info.KnownToImplementIDisposable); 17166Assert.Null(op.Info.PatternDisposeMethod); 17167Assert.True(op.Info.DisposeArguments.IsDefault); 17260Assert.True(op.Info.IsAsynchronous); 17261Assert.True(op.Info.NeedsDispose); 17262Assert.True(op.Info.KnownToImplementIDisposable); 17263Assert.Null(op.Info.PatternDisposeMethod); 17264Assert.True(op.Info.DisposeArguments.IsDefault); 17344Assert.True(op.Info.IsAsynchronous); 17345Assert.False(op.Info.NeedsDispose); 17346Assert.False(op.Info.KnownToImplementIDisposable); 17347Assert.Null(op.Info.PatternDisposeMethod); 17348Assert.True(op.Info.DisposeArguments.IsDefault); 17771Assert.False(op.Info.IsAsynchronous); 17772AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 17773Assert.Empty(op.Info.GetEnumeratorArguments); 17774AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 17968Assert.False(op.Info.IsAsynchronous); 17969AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 17970Assert.Empty(op.Info.GetEnumeratorArguments); 17971AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 18192Assert.False(op.Info.IsAsynchronous); 18193AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 18194Assert.Empty(op.Info.GetEnumeratorArguments); 18195AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 18388Assert.False(op.Info.IsAsynchronous); 18389AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 18390Assert.Empty(op.Info.GetEnumeratorArguments); 18391AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 18589Assert.False(op.Info.IsAsynchronous); 18590AssertEx.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 18591Assert.Empty(op.Info.GetEnumeratorArguments); 18592AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 18663Assert.Null(op.Info); 18873Assert.False(op.Info.IsAsynchronous); 18874AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString()); 18875Assert.Empty(op.Info.GetEnumeratorArguments); 18876AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 19210Assert.False(op.Info.IsAsynchronous); 19211AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 19212AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 19213Assert.Empty(op.Info.MoveNextArguments); 19214AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19215Assert.True(op.Info.CurrentArguments.IsDefault); 19216Assert.False(op.Info.NeedsDispose); 19217Assert.False(op.Info.KnownToImplementIDisposable); 19218Assert.Null(op.Info.PatternDisposeMethod); 19219Assert.True(op.Info.DisposeArguments.IsDefault); 19381Assert.False(op.Info.IsAsynchronous); 19382AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 19383AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 19384Assert.Empty(op.Info.MoveNextArguments); 19385AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19386Assert.True(op.Info.CurrentArguments.IsDefault); 19387Assert.False(op.Info.NeedsDispose); 19388Assert.False(op.Info.KnownToImplementIDisposable); 19389Assert.Null(op.Info.PatternDisposeMethod); 19390Assert.True(op.Info.DisposeArguments.IsDefault); 19538Assert.Null(op.Info); 19706Assert.False(op.Info.IsAsynchronous); 19707AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 19708AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 19709Assert.Empty(op.Info.MoveNextArguments); 19710AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19711Assert.True(op.Info.CurrentArguments.IsDefault); 19712Assert.False(op.Info.NeedsDispose); 19713Assert.False(op.Info.KnownToImplementIDisposable); 19714Assert.Null(op.Info.PatternDisposeMethod); 19715Assert.True(op.Info.DisposeArguments.IsDefault); 19874Assert.False(op.Info.IsAsynchronous); 19875AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString()); 19876AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString()); 19877Assert.Empty(op.Info.MoveNextArguments); 19878AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19879Assert.True(op.Info.CurrentArguments.IsDefault); 19880Assert.True(op.Info.NeedsDispose); 19881Assert.True(op.Info.KnownToImplementIDisposable); 19882Assert.Null(op.Info.PatternDisposeMethod); 19883Assert.True(op.Info.DisposeArguments.IsDefault); 19978Assert.Null(op.Info);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (24)
IOperation\IOperationTests_IForEachLoopStatement.cs (24)
2809Assert.Equal(2, op.Info.GetEnumeratorArguments.Length); 2810Assert.Equal(3, op.Info.MoveNextArguments.Length); 2811Assert.Equal(4, op.Info.DisposeArguments.Length); 2813op.Info.PatternDisposeMethod.ToTestDisplayString()); 2815VerifyOperationTree(comp, op.Info.GetEnumeratorArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2820VerifyOperationTree(comp, op.Info.GetEnumeratorArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2825VerifyOperationTree(comp, op.Info.MoveNextArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2830VerifyOperationTree(comp, op.Info.MoveNextArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2835VerifyOperationTree(comp, op.Info.MoveNextArguments[2], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: r) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2840VerifyOperationTree(comp, op.Info.DisposeArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2845VerifyOperationTree(comp, op.Info.DisposeArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2850VerifyOperationTree(comp, op.Info.DisposeArguments[2], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: xxx) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2855VerifyOperationTree(comp, op.Info.DisposeArguments[3], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: f) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2941Assert.Equal(2, op.Info.GetEnumeratorArguments.Length); 2942Assert.Equal(2, op.Info.MoveNextArguments.Length); 2943Assert.Equal(2, op.Info.DisposeArguments.Length); 2945Assert.Equal("System.Threading.Tasks.ValueTask AsyncEnumerator.DisposeAsync([System.String s = null], [System.Int32 line = 0])", op.Info.PatternDisposeMethod.ToTestDisplayString()); 2947VerifyOperationTree(comp, op.Info.GetEnumeratorArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2952VerifyOperationTree(comp, op.Info.GetEnumeratorArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2957VerifyOperationTree(comp, op.Info.MoveNextArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2962VerifyOperationTree(comp, op.Info.MoveNextArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2967VerifyOperationTree(comp, op.Info.DisposeArguments[0], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: s) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 2972VerifyOperationTree(comp, op.Info.DisposeArguments[1], @"IArgumentOperation (ArgumentKind.DefaultValue, Matching Parameter: line) (OperationKind.Argument, Type: null, IsImplicit) (Syntax: 'await forea ... }') 3034Assert.Null(op.Info.PatternDisposeMethod);
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (1)
640ForEachLoopOperationInfo info = ((ForEachLoopOperation)operation).Info;
Compilation\TestOperationVisitor.cs (1)
337ForEachLoopOperationInfo info = ((ForEachLoopOperation)operation).Info;