1 write to CurrentProperty
Microsoft.CodeAnalysis.CSharp (1)
Compilation\ForEachStatementInfo.cs (1)
77this.CurrentProperty = currentProperty;
58 references to CurrentProperty
Microsoft.CodeAnalysis.CSharp (5)
Compilation\ForEachStatementInfo.cs (5)
41/// The intermediate type to which the output of the <see cref="CurrentProperty"/> is converted 58/// The conversion from the type of the <see cref="CurrentProperty"/> to the <see cref="ElementType"/>. 94&& object.Equals(this.CurrentProperty, other.CurrentProperty) 106Hash.Combine(CurrentProperty,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
179info.CurrentProperty,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenAwaitForeachTests.cs (14)
1185Assert.Equal("System.Int32 C.Enumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 2473Assert.Equal("System.Int32 C.Enumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 5471info.CurrentProperty.ToTestDisplayString()); 6944info.CurrentProperty.ToTestDisplayString()); 7101info.CurrentProperty.ToTestDisplayString()); 7380info.CurrentProperty.ToTestDisplayString()); 7575info.CurrentProperty.ToTestDisplayString()); 8065info.CurrentProperty.ToTestDisplayString()); 8209info.CurrentProperty.ToTestDisplayString()); 10234Assert.Equal("System.Int32 C.Enumerator.Current { get; private set; }", info.CurrentProperty.ToTestDisplayString()); 14419info.CurrentProperty.ToTestDisplayString()); 14556info.CurrentProperty.ToTestDisplayString()); 14698info.CurrentProperty.ToTestDisplayString()); 14891info.CurrentProperty.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (29)
RefStructInterfacesTests.cs (22)
9025AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 9229AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 9393Assert.Null(info.CurrentProperty); 9593AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 9817AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 10026AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 10253AssertEx.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 10356Assert.Null(info.CurrentProperty); 10451Assert.Null(info.CurrentProperty); 10636AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 10833AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 11074AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 11301AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 11513AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 11613AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 11708AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 19604AssertEx.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 19775AssertEx.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 19932Assert.Null(info.CurrentProperty); 20100AssertEx.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 20268AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString()); 20373Assert.Null(info.CurrentProperty);
Semantics\ExtensionTests.cs (4)
13865Assert.Null(model.GetForEachStatementInfo(loop).CurrentProperty); 13910Assert.Null(model.GetForEachStatementInfo(loop).CurrentProperty); 25241Assert.Null(model.GetForEachStatementInfo(loop).CurrentProperty); 25288Assert.Null(model.GetForEachStatementInfo(loop).CurrentProperty);
Semantics\InlineArrayTests.cs (3)
18604Assert.Equal("ref System.Int32 System.Span<System.Int32>.Enumerator.Current { get; }", forEachInfo.CurrentProperty.ToTestDisplayString()); 18930Assert.Equal("ref readonly modreq(System.Runtime.InteropServices.InAttribute) System.Int32 System.ReadOnlySpan<System.Int32>.Enumerator.Current { get; }", forEachInfo.CurrentProperty.ToTestDisplayString()); 19267Assert.Equal("ref readonly modreq(System.Runtime.InteropServices.InAttribute) System.Int32 System.ReadOnlySpan<System.Int32>.Enumerator.Current { get; }", forEachInfo.CurrentProperty.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\ForEachTests.cs (6)
2134Assert.Equal<ISymbol>(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current).GetPublicSymbol(), loopInfo.CurrentProperty); 2140Assert.Equal(SpecialType.System_Object, loopInfo.CurrentProperty.Type.SpecialType); 2186Assert.Equal<ISymbol>(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current).GetPublicSymbol(), loopInfo0.CurrentProperty); 2195Assert.Equal(loopInfo0.CurrentProperty, loopInfo1.CurrentProperty); 3277Assert.Equal(enumeratorInfo.CurrentPropertyGetter.GetPublicSymbol(), statementInfo.CurrentProperty.GetMethod);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
2002Assert.Equal("System.Object System.Collections.IEnumerator.Current.get", info.CurrentProperty.GetMethod.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
179info.CurrentProperty,
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
179info.CurrentProperty,