1 write to CurrentProperty
Microsoft.CodeAnalysis (1)
Operations\Loops\ForEachLoopOperationInfo.cs (1)
65CurrentProperty = currentProperty;
22 references to CurrentProperty
Microsoft.CodeAnalysis (5)
Operations\ControlFlowGraphBuilder.cs (4)
4635if (info?.CurrentProperty != null) 4637var instance = info.CurrentProperty.IsStatic ? null : enumeratorRef; 4639return new PropertyReferenceOperation(info.CurrentProperty, 4645info.CurrentProperty.Type, isImplicit: true);
Operations\Loops\ForEachLoopOperationInfo.cs (1)
29/// The conversion from the type of the <see cref="CurrentProperty"/> to the <see cref="ElementType"/>.
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
RefStructInterfacesTests.cs (17)
9033AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 9237AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 9601AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 9825AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10034AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10261AssertEx.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10644AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 10841AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11082AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11309AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11521AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11621AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 11716AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19214AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19385AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19710AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString()); 19878AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());