1 instantiation of MethodSymbol
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymFactory.cs (1)
42sym = new MethodSymbol();
102 references to MethodSymbol
Microsoft.CSharp (102)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (2)
165private void ErrAppendMethod(MethodSymbol meth, SubstContext pctx, bool fArgs) 349ErrAppendMethod((MethodSymbol)sym, pctx, fArgs);
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (3)
834if ((payload.Name.StartsWith("set_", StringComparison.Ordinal) && ((MethodSymbol)swt.Sym).Params.Count > 1) || 835(payload.Name.StartsWith("get_", StringComparison.Ordinal) && ((MethodSymbol)swt.Sym).Params.Count > 0)) 852MethodSymbol method = call.MethWithInst.Meth();
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (1)
738for (MethodSymbol convCur = aggCur.GetFirstUDConversion(); convCur != null; convCur = convCur.ConvNext())
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (7)
401Debug.Assert(mwi.Sym is MethodSymbol && (!mwi.Meth().isOverride || mwi.Meth().isHideByName)); 576MethodSymbol methCur = null; 584: methCur.LookupNext(symbmask_t.MASK_MethodSymbol)) as MethodSymbol; 934MethodSymbol meth = pMWI.Meth(); 1002if ((swt.Sym is MethodSymbol) && swt.Meth().IsConstructor()) 1038if (pSym is MethodSymbol meth && meth.IsConstructor()) 1415private static bool IsConvInTable(List<UdConvInfo> convTable, MethodSymbol meth, AggregateType ats, bool fSrc, bool fDst)
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
66public static ExprMethodInfo CreateMethodInfo(MethodSymbol method, AggregateType methodType, TypeArray methodParameters) =>
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (9)
585if (!(pMethProp is MethodSymbol method)) 604var slotMethod = method.swtSlot?.Meth(); 632Debug.Assert(meth is MethodSymbol); 633return ((MethodSymbol)meth).getProperty(); 864if (_pCurrentSym is MethodSymbol methSym && methSym.typeVars.Count != typeArgs.Count) 982if (_results.IsBetterUninferableResult(_pCurrentTypeArgs) && _pCurrentSym is MethodSymbol meth) 1083Debug.Assert(_results.BestResult.MethProp() is MethodSymbol); 1173_results.UninferableResult.Set(_mpwiCantInferInstArg.Sym as MethodSymbol, _mpwiCantInferInstArg.GetType(), _mpwiCantInferInstArg.TypeArgs); 1175Debug.Assert(_results.UninferableResult.Sym is MethodSymbol);
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (10)
88_fMulti = sym is MethodSymbol || sym is IndexerSymbol; 124if (_arity > 0 && (!(symCur is MethodSymbol curMeth) || curMeth.typeVars.Count != _arity)) 141MethodSymbol meth = symCur as MethodSymbol; 191if (!(symCur is MethodSymbol) && (_flags & MemLookFlags.Indexer) == 0 && CSemanticChecker.CheckBogus(symCur)) 270if (!(symCur is MethodSymbol)) 283if (!(_swtFirst.Sym is MethodSymbol)) 474MethodSymbol meth1 = swt.Prop().GetterMethod; 475MethodSymbol meth2 = swt.Prop().SetterMethod; 648if (_swtBadArity.Sym is MethodSymbol badMeth)
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (3)
660 == (_flags & EXPRFLAG.EXF_CTOR) != !((MethodSymbol)CurrentSymbol).IsConstructor() || 670 == (_flags & EXPRFLAG.EXF_OPERATOR) != !((MethodSymbol)CurrentSymbol).isOperator) || 75if (_arity > 0 & _mask == symbmask_t.MASK_MethodSymbol && ((MethodSymbol)CurrentSymbol).typeVars.Count != _arity)
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (1)
86MethodSymbol pMethod,
Microsoft\CSharp\RuntimeBinder\Semantics\Nullable.cs (1)
71MethodSymbol meth = PredefinedMembers.GetMethod(PREDEFMETH.PM_G_OPTIONAL_CTOR);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (7)
2465private static bool UserDefinedBinaryOperatorCanBeLifted(ExpressionKind ek, MethodSymbol method, AggregateType ats, 2511ExpressionKind ek, MethodSymbol method, AggregateType ats, Expr arg1, Expr arg2, bool fDontLift) 2556for (MethodSymbol methCur = SymbolLoader.LookupAggMember(name, type.OwningAggregate, symbmask_t.MASK_MethodSymbol) as MethodSymbol; 2558methCur = methCur.LookupNext(symbmask_t.MASK_MethodSymbol) as MethodSymbol) 2791MethodSymbol methSym = PredefinedMembers.GetMethod(predefMeth); 2807MethodSymbol methSym = PredefinedMembers.GetMethod(predefMeth);
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (9)
198private static readonly MethodSymbol[] _methods = new MethodSymbol[(int)PREDEFMETH.PM_COUNT]; 221MethodSymbol getter = GetMethod(propertyGetter); 320public static MethodSymbol GetMethod(PREDEFMETH method) 328private static MethodSymbol LoadMethod( 351MethodSymbol ret = LookupMethodWhileLoading(type, cMethodTyVars, methodName, methodAccess, isStatic, isVirtual, returnType, argumentTypes); 362private static MethodSymbol LookupMethodWhileLoading(AggregateSymbol type, int cMethodTyVars, Name methodName, ACCESS methodAccess, bool isStatic, bool isVirtual, CType returnType, TypeArray argumentTypes) 368if (sym is MethodSymbol methsym) 386private 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)
129public static MethodSymbol CreateMethod(Name name, AggregateSymbol parent) => 130NewBasicSymbol(SYMKIND.SK_MethodSymbol, name, parent) as MethodSymbol; 150public static TypeParameterSymbol CreateMethodTypeParameter(Name pName, MethodSymbol pParent, int index, int indexTotal)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs (3)
14public ExprMethodInfo(CType type, MethodSymbol method, AggregateType methodType, TypeArray methodParameters) 32MethodSymbol methSym = Method.Meth(); 105MethodSymbol methSym = Method.Meth();
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (8)
92MethodSymbol lambdaMethod = GetPreDefMethod(PREDEFMETH.PM_EXPRESSION_LAMBDA); 199MethodSymbol method = GetPreDefMethod(pdm); 798private static MethodSymbol GetPreDefMethod(PREDEFMETH pdm) => PredefinedMembers.GetMethod(pdm); 904MethodSymbol method = GetPreDefMethod(pdm); 920MethodSymbol method = GetPreDefMethod(pdm); 935MethodSymbol method = GetPreDefMethod(pdm); 950MethodSymbol method = GetPreDefMethod(pdm); 982MethodSymbol 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)
306private static TypeArray GetMethodTypeParameters(MethodInfo method, MethodSymbol parent) 509private static TypeParameterType LoadMethodTypeParameter(MethodSymbol parent, Type t) 531MethodSymbol meth, 661MethodSymbol meth = FindMatchingMethod(methinfo, parent); 1362private static MethodSymbol AddMethodToSymbolTable(MethodBase member, AggregateSymbol callingAggregate, MethodKindEnum kind) 1383MethodSymbol methodSymbol = FindMatchingMethod(member, callingAggregate); 1621private static MethodSymbol FindMatchingMethod(MemberInfo method, AggregateSymbol callingAggregate) 1623MethodSymbol meth = SymbolStore.LookupSym(GetName(method.Name), callingAggregate, symbmask_t.MASK_MethodSymbol) as MethodSymbol; 1631meth = meth.LookupNext(symbmask_t.MASK_MethodSymbol) as MethodSymbol; 1728MethodSymbol baseMethod = FindMethodFromMemberInfo(baseMethodInfo); 1740private static MethodSymbol FindMethodFromMemberInfo(MemberInfo baseMemberInfo) 1747MethodSymbol meth = SymbolLoader.LookupAggMember( 1750symbmask_t.MASK_MethodSymbol) as MethodSymbol; 1753meth = meth.LookupNext(symbmask_t.MASK_MethodSymbol) as MethodSymbol)