41 references to MethodKindEnum
Microsoft.CSharp (41)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (8)
173
MethodKindEnum
methodKind = meth.MethKind;
176
case
MethodKindEnum
.PropAccessor:
196
case
MethodKindEnum
.EventAccessor:
220
case
MethodKindEnum
.Constructor:
225
case
MethodKindEnum
.Destructor:
228
goto case
MethodKindEnum
.Constructor;
230
case
MethodKindEnum
.ExplicitConv:
234
case
MethodKindEnum
.ImplicitConv:
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (1)
221
getter.SetMethKind(
MethodKindEnum
.PropAccessor);
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (9)
17
private
MethodKindEnum
_methKind; // An extra bit to prevent sign-extension
64
public
MethodKindEnum
MethKind => _methKind;
68
return _methKind ==
MethodKindEnum
.Constructor;
81
return _methKind ==
MethodKindEnum
.PropAccessor;
86
return _methKind ==
MethodKindEnum
.EventAccessor;
91
return _methKind ==
MethodKindEnum
.ImplicitConv;
94
public void SetMethKind(
MethodKindEnum
mk)
139
Debug.Assert(MethKind ==
MethodKindEnum
.ExplicitConv || MethKind ==
MethodKindEnum
.ImplicitConv);
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (23)
187
MethodKindEnum
kind = member.Name switch
189
SpecialNames.Invoke =>
MethodKindEnum
.Invoke,
190
SpecialNames.ImplicitConversion =>
MethodKindEnum
.ImplicitConv,
191
SpecialNames.ExplicitConversion =>
MethodKindEnum
.ExplicitConv,
192
_ =>
MethodKindEnum
.Actual,
199
AddMethodToSymbolTable(ctor, aggregate,
MethodKindEnum
.Constructor);
651
meth = AddMethodToSymbolTable(methinfo, parent,
MethodKindEnum
.Actual);
1094
ev.methAdd = AddMethodToSymbolTable(eventInfo.AddMethod, aggregate,
MethodKindEnum
.EventAccessor);
1102
ev.methRemove = AddMethodToSymbolTable(eventInfo.RemoveMethod, aggregate,
MethodKindEnum
.EventAccessor);
1249
prop.GetterMethod = AddMethodToSymbolTable(methGet, aggregate,
MethodKindEnum
.PropAccessor);
1260
prop.GetterMethod.SetMethKind(
MethodKindEnum
.Actual);
1270
prop.SetterMethod = AddMethodToSymbolTable(methSet, aggregate,
MethodKindEnum
.PropAccessor);
1281
prop.SetterMethod.SetMethKind(
MethodKindEnum
.Actual);
1314
MethodKindEnum
.Constructor);
1326
m.Name == SpecialNames.Invoke ?
MethodKindEnum
.Invoke :
MethodKindEnum
.Actual);
1335
private static MethodSymbol AddMethodToSymbolTable(MethodBase member, AggregateSymbol callingAggregate,
MethodKindEnum
kind)
1349
if (kind ==
MethodKindEnum
.Actual && // MethKindEnum.Actual
1367
if (kind ==
MethodKindEnum
.ExplicitConv || kind ==
MethodKindEnum
.ImplicitConv)
1795
MethodKindEnum
methodKind;
1799
methodKind =
MethodKindEnum
.ImplicitConv;
1802
methodKind =
MethodKindEnum
.ExplicitConv;