1 write to CurrentProperty
Microsoft.CodeAnalysis.CSharp (1)
Compilation\ForEachStatementInfo.cs (1)
77
this.
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
)
106
Hash.Combine(
CurrentProperty
,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
179
info.
CurrentProperty
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenAwaitForeachTests.cs (14)
1185
Assert.Equal("System.Int32 C.Enumerator.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
2473
Assert.Equal("System.Int32 C.Enumerator.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
5471
info.
CurrentProperty
.ToTestDisplayString());
6944
info.
CurrentProperty
.ToTestDisplayString());
7101
info.
CurrentProperty
.ToTestDisplayString());
7380
info.
CurrentProperty
.ToTestDisplayString());
7575
info.
CurrentProperty
.ToTestDisplayString());
8065
info.
CurrentProperty
.ToTestDisplayString());
8209
info.
CurrentProperty
.ToTestDisplayString());
10234
Assert.Equal("System.Int32 C.Enumerator.Current { get; private set; }", info.
CurrentProperty
.ToTestDisplayString());
14419
info.
CurrentProperty
.ToTestDisplayString());
14556
info.
CurrentProperty
.ToTestDisplayString());
14698
info.
CurrentProperty
.ToTestDisplayString());
14891
info.
CurrentProperty
.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (29)
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());
19604
AssertEx.Equal("System.Object S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
19775
AssertEx.Equal("System.Object S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
19932
Assert.Null(info.
CurrentProperty
);
20100
AssertEx.Equal("System.Object S2.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
20268
AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", info.
CurrentProperty
.ToTestDisplayString());
20373
Assert.Null(info.
CurrentProperty
);
Semantics\ExtensionTests.cs (4)
13865
Assert.Null(model.GetForEachStatementInfo(loop).
CurrentProperty
);
13910
Assert.Null(model.GetForEachStatementInfo(loop).
CurrentProperty
);
25241
Assert.Null(model.GetForEachStatementInfo(loop).
CurrentProperty
);
25288
Assert.Null(model.GetForEachStatementInfo(loop).
CurrentProperty
);
Semantics\InlineArrayTests.cs (3)
18604
Assert.Equal("ref System.Int32 System.Span<System.Int32>.Enumerator.Current { get; }", forEachInfo.
CurrentProperty
.ToTestDisplayString());
18930
Assert.Equal("ref readonly modreq(System.Runtime.InteropServices.InAttribute) System.Int32 System.ReadOnlySpan<System.Int32>.Enumerator.Current { get; }", forEachInfo.
CurrentProperty
.ToTestDisplayString());
19267
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)
179
info.
CurrentProperty
,
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
179
info.
CurrentProperty
,