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