1 write to CurrentProperty
Microsoft.CodeAnalysis.CSharp (1)
Compilation\ForEachStatementInfo.cs (1)
77
this.
CurrentProperty
= currentProperty;
53 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
)
106
Hash.Combine(
CurrentProperty
,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
178
info.
CurrentProperty
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenAwaitForeachTests.cs (14)
942
Assert.Equal("System.Int32 C.Enumerator.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
1666
Assert.Equal("System.Int32 C.Enumerator.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
3723
info.
CurrentProperty
.ToTestDisplayString());
4470
info.
CurrentProperty
.ToTestDisplayString());
4544
info.
CurrentProperty
.ToTestDisplayString());
4654
info.
CurrentProperty
.ToTestDisplayString());
4753
info.
CurrentProperty
.ToTestDisplayString());
5057
info.
CurrentProperty
.ToTestDisplayString());
5138
info.
CurrentProperty
.ToTestDisplayString());
6444
Assert.Equal("System.Int32 C.Enumerator.Current { get; private set; }", info.
CurrentProperty
.ToTestDisplayString());
9116
info.
CurrentProperty
.ToTestDisplayString());
9192
info.
CurrentProperty
.ToTestDisplayString());
9270
info.
CurrentProperty
.ToTestDisplayString());
9402
info.
CurrentProperty
.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (25)
RefStructInterfacesTests.cs (22)
9025
AssertEx.Equal("System.Int32 S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
9229
AssertEx.Equal("System.Int32 S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
9393
Assert.Null(info.
CurrentProperty
);
9593
AssertEx.Equal("System.Int32 S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
9817
AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
10026
AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
10253
AssertEx.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
10356
Assert.Null(info.
CurrentProperty
);
10451
Assert.Null(info.
CurrentProperty
);
10636
AssertEx.Equal("System.Int32 S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
10833
AssertEx.Equal("System.Int32 S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
11074
AssertEx.Equal("System.Int32 S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
11301
AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
11513
AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
11613
AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
11708
AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
19206
AssertEx.Equal("System.Object S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
19377
AssertEx.Equal("System.Object S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
19534
Assert.Null(info.
CurrentProperty
);
19702
AssertEx.Equal("System.Object S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
19870
AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
19975
Assert.Null(info.
CurrentProperty
);
Semantics\InlineArrayTests.cs (3)
18598
Assert.Equal("ref System.Int32 System.Span<System.Int32>.Enumerator.Current { get; }", forEachInfo.
CurrentProperty
.ToTestDisplayString());
18924
Assert.Equal("ref readonly modreq(System.Runtime.InteropServices.InAttribute) System.Int32 System.ReadOnlySpan<System.Int32>.Enumerator.Current { get; }", forEachInfo.
CurrentProperty
.ToTestDisplayString());
19261
Assert.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)
2134
Assert.Equal<ISymbol>(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current).GetPublicSymbol(), loopInfo.
CurrentProperty
);
2140
Assert.Equal(SpecialType.System_Object, loopInfo.
CurrentProperty
.Type.SpecialType);
2186
Assert.Equal<ISymbol>(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current).GetPublicSymbol(), loopInfo0.
CurrentProperty
);
2195
Assert.Equal(loopInfo0.
CurrentProperty
, loopInfo1.
CurrentProperty
);
3277
Assert.Equal(enumeratorInfo.CurrentPropertyGetter.GetPublicSymbol(), statementInfo.
CurrentProperty
.GetMethod);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
2002
Assert.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)
178
info.
CurrentProperty
,