1 instantiation of MethodSymbol
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymFactory.cs (1)
40sym = new MethodSymbol();
102 references to MethodSymbol
Microsoft.CSharp (102)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (2)
159private void ErrAppendMethod(MethodSymbol meth, SubstContext pctx, bool fArgs) 338ErrAppendMethod((MethodSymbol)sym, pctx, fArgs);
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (3)
812if ((payload.Name.StartsWith("set_", StringComparison.Ordinal) && ((MethodSymbol)swt.Sym).Params.Count > 1) || 813(payload.Name.StartsWith("get_", StringComparison.Ordinal) && ((MethodSymbol)swt.Sym).Params.Count > 0)) 830MethodSymbol method = call.MethWithInst.Meth();
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (1)
711for (MethodSymbol convCur = aggCur.GetFirstUDConversion(); convCur != null; convCur = convCur.ConvNext())
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (7)
392Debug.Assert(mwi.Sym is MethodSymbol && (!mwi.Meth().isOverride || mwi.Meth().isHideByName)); 564MethodSymbol methCur = null; 572: methCur.LookupNext(symbmask_t.MASK_MethodSymbol)) as MethodSymbol; 913MethodSymbol meth = pMWI.Meth(); 979if ((swt.Sym is MethodSymbol) && swt.Meth().IsConstructor()) 1015if (pSym is MethodSymbol meth && meth.IsConstructor()) 1389private static bool IsConvInTable(List<UdConvInfo> convTable, MethodSymbol meth, AggregateType ats, bool fSrc, bool fDst)
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
58public static ExprMethodInfo CreateMethodInfo(MethodSymbol method, AggregateType methodType, TypeArray methodParameters) =>
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (9)
584if (!(pMethProp is MethodSymbol method)) 603var slotMethod = method.swtSlot?.Meth(); 631Debug.Assert(meth is MethodSymbol); 632return ((MethodSymbol)meth).getProperty(); 863if (_pCurrentSym is MethodSymbol methSym && methSym.typeVars.Count != typeArgs.Count) 981if (_results.IsBetterUninferableResult(_pCurrentTypeArgs) && _pCurrentSym is MethodSymbol meth) 1082Debug.Assert(_results.BestResult.MethProp() is MethodSymbol); 1172_results.UninferableResult.Set(_mpwiCantInferInstArg.Sym as MethodSymbol, _mpwiCantInferInstArg.GetType(), _mpwiCantInferInstArg.TypeArgs); 1174Debug.Assert(_results.UninferableResult.Sym is MethodSymbol);
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (10)
87_fMulti = sym is MethodSymbol || sym is IndexerSymbol; 123if (_arity > 0 && (!(symCur is MethodSymbol curMeth) || curMeth.typeVars.Count != _arity)) 140MethodSymbol meth = symCur as MethodSymbol; 190if (!(symCur is MethodSymbol) && (_flags & MemLookFlags.Indexer) == 0 && CSemanticChecker.CheckBogus(symCur)) 269if (!(symCur is MethodSymbol)) 282if (!(_swtFirst.Sym is MethodSymbol)) 473MethodSymbol meth1 = swt.Prop().GetterMethod; 474MethodSymbol meth2 = swt.Prop().SetterMethod; 647if (_swtBadArity.Sym is MethodSymbol badMeth)
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (3)
650 == (_flags & EXPRFLAG.EXF_CTOR) != !((MethodSymbol)CurrentSymbol).IsConstructor() || 660 == (_flags & EXPRFLAG.EXF_OPERATOR) != !((MethodSymbol)CurrentSymbol).isOperator) || 74if (_arity > 0 & _mask == symbmask_t.MASK_MethodSymbol && ((MethodSymbol)CurrentSymbol).typeVars.Count != _arity)
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (1)
85MethodSymbol pMethod,
Microsoft\CSharp\RuntimeBinder\Semantics\Nullable.cs (1)
69MethodSymbol meth = PredefinedMembers.GetMethod(PREDEFMETH.PM_G_OPTIONAL_CTOR);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (7)
2406private static bool UserDefinedBinaryOperatorCanBeLifted(ExpressionKind ek, MethodSymbol method, AggregateType ats, 2451ExpressionKind ek, MethodSymbol method, AggregateType ats, Expr arg1, Expr arg2, bool fDontLift) 2495for (MethodSymbol methCur = SymbolLoader.LookupAggMember(name, type.OwningAggregate, symbmask_t.MASK_MethodSymbol) as MethodSymbol; 2497methCur = methCur.LookupNext(symbmask_t.MASK_MethodSymbol) as MethodSymbol) 2724MethodSymbol methSym = PredefinedMembers.GetMethod(predefMeth); 2739MethodSymbol methSym = PredefinedMembers.GetMethod(predefMeth);
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (9)
198private static readonly MethodSymbol[] _methods = new MethodSymbol[(int)PREDEFMETH.PM_COUNT]; 219MethodSymbol getter = GetMethod(propertyGetter); 313public static MethodSymbol GetMethod(PREDEFMETH method) 320private static MethodSymbol LoadMethod( 343MethodSymbol ret = LookupMethodWhileLoading(type, cMethodTyVars, methodName, methodAccess, isStatic, isVirtual, returnType, argumentTypes); 353private static MethodSymbol LookupMethodWhileLoading(AggregateSymbol type, int cMethodTyVars, Name methodName, ACCESS methodAccess, bool isStatic, bool isVirtual, CType returnType, TypeArray argumentTypes) 359if (sym is MethodSymbol methsym) 376private static MethodSymbol LoadMethod(PREDEFMETH method)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\AggregateSymbol.cs (3)
37private MethodSymbol _pConvFirst; 346public MethodSymbol GetFirstUDConversion() 351public void SetFirstUDConversion(MethodSymbol conv)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\EventSymbol.cs (2)
30public MethodSymbol methAdd; // Adder method (always has same parent) 31public MethodSymbol methRemove; // Remover method (always has same parent)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (3)
21private MethodSymbol _convNext; // For linked list of conversion operators. 99public MethodSymbol ConvNext() 105public void SetConvNext(MethodSymbol conv)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\PropertySymbol.cs (2)
18public MethodSymbol GetterMethod { get; set; } // (always has same parent) 20public MethodSymbol SetterMethod { get; set; } // (always has same parent)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\Symbol.cs (2)
225MethodSymbol methAdd = ((EventSymbol)this).methAdd; 237return !(this is MethodSymbol methSym) || methSym.isUserCallable();
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymFactory.cs (3)
122public static MethodSymbol CreateMethod(Name name, AggregateSymbol parent) => 123NewBasicSymbol(SYMKIND.SK_MethodSymbol, name, parent) as MethodSymbol; 140public static TypeParameterSymbol CreateMethodTypeParameter(Name pName, MethodSymbol pParent, int index, int indexTotal)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs (3)
13public ExprMethodInfo(CType type, MethodSymbol method, AggregateType methodType, TypeArray methodParameters) 31MethodSymbol methSym = Method.Meth(); 104MethodSymbol methSym = Method.Meth();
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (8)
91MethodSymbol lambdaMethod = GetPreDefMethod(PREDEFMETH.PM_EXPRESSION_LAMBDA); 198MethodSymbol method = GetPreDefMethod(pdm); 797private static MethodSymbol GetPreDefMethod(PREDEFMETH pdm) => PredefinedMembers.GetMethod(pdm); 903MethodSymbol method = GetPreDefMethod(pdm); 919MethodSymbol method = GetPreDefMethod(pdm); 934MethodSymbol method = GetPreDefMethod(pdm); 949MethodSymbol method = GetPreDefMethod(pdm); 981MethodSymbol method = expr.UserDefinedCallMethod.Meth();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeParameterType.cs (1)
63? ((MethodInfo)((MethodSymbol)OwningSymbol).AssociatedMemberInfo).GetGenericArguments()
Microsoft\CSharp\RuntimeBinder\Semantics\WithType.cs (6)
107public MethodSymbol Meth() 109return Sym as MethodSymbol; 155public MethWithType(MethodSymbol meth, AggregateType ats) 233public MethWithInst(MethodSymbol meth, AggregateType ats) 237public MethWithInst(MethodSymbol meth, AggregateType ats, TypeArray typeArgs) 243Set(mpwi.Sym as MethodSymbol, mpwi.Ats, mpwi.TypeArgs);
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (15)
299private static TypeArray GetMethodTypeParameters(MethodInfo method, MethodSymbol parent) 499private static TypeParameterType LoadMethodTypeParameter(MethodSymbol parent, Type t) 520MethodSymbol meth, 648MethodSymbol meth = FindMatchingMethod(methinfo, parent); 1335private static MethodSymbol AddMethodToSymbolTable(MethodBase member, AggregateSymbol callingAggregate, MethodKindEnum kind) 1356MethodSymbol methodSymbol = FindMatchingMethod(member, callingAggregate); 1592private static MethodSymbol FindMatchingMethod(MemberInfo method, AggregateSymbol callingAggregate) 1594MethodSymbol meth = SymbolStore.LookupSym(GetName(method.Name), callingAggregate, symbmask_t.MASK_MethodSymbol) as MethodSymbol; 1602meth = meth.LookupNext(symbmask_t.MASK_MethodSymbol) as MethodSymbol; 1696MethodSymbol baseMethod = FindMethodFromMemberInfo(baseMethodInfo); 1707private static MethodSymbol FindMethodFromMemberInfo(MemberInfo baseMemberInfo) 1714MethodSymbol meth = SymbolLoader.LookupAggMember( 1717symbmask_t.MASK_MethodSymbol) as MethodSymbol; 1720meth = meth.LookupNext(symbmask_t.MASK_MethodSymbol) as MethodSymbol)