50 references to Meth
Microsoft.CSharp (50)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (2)
830
MethodSymbol method = call.MethWithInst.
Meth
();
850
methprop = call.MethWithInst.
Meth
();
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (5)
883
typeFrom = TypeManager.SubstType(uci.Meth.
Meth
().Params[0], uci.Meth.GetType());
884
typeTo = TypeManager.SubstType(uci.Meth.
Meth
().RetType, uci.Meth.GetType());
980
MethWithInst mwiBest = new MethWithInst(prguci[iuciBest].Meth.
Meth
(), prguci[iuciBest].Meth.GetType(), null);
984
typeFrom = TypeManager.SubstType(mwiBest.
Meth
().Params[0], mwiBest.GetType());
985
typeTo = TypeManager.SubstType(mwiBest.
Meth
().RetType, mwiBest.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (11)
392
Debug.Assert(mwi.Sym is MethodSymbol && (!mwi.
Meth
().isOverride || mwi.
Meth
().isHideByName));
408
pReturnType = TypeManager.SubstType(mwi.
Meth
().RetType, mwi.GetType(), mwi.TypeArgs);
512
ACCESSERROR error = CSemanticChecker.CheckAccess2(mwtGet.
Meth
(), mwtGet.GetType(), ContextForMemberLookup, type);
662
CType typeRet = TypeManager.SubstType(mpwi.
Meth
().RetType, mpwi.GetType());
683
CType typeRet = TypeManager.SubstType(mpwi.
Meth
().RetType, mpwi.GetType());
840
switch (CSemanticChecker.CheckAccess2(mwt.
Meth
(), mwt.GetType(), ContextForMemberLookup, type))
845
throw ErrorHandling.Error(mwt.
Meth
().isSetAccessor() ? ErrorCode.ERR_InaccessibleSetter : ErrorCode.ERR_InaccessibleGetter, pwtSlot);
913
MethodSymbol meth = pMWI.
Meth
();
979
if ((swt.Sym is MethodSymbol) && swt.
Meth
().IsConstructor())
1393
if (conv.Meth.
Meth
() == meth &&
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
55
CreateMethodInfo(mwi.
Meth
(), mwi.GetType(), mwi.TypeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (4)
603
var slotMethod = method.swtSlot?.
Meth
();
1176
MethWithType mwtCantInfer = new MethWithType(_results.UninferableResult.
Meth
(), _results.UninferableResult.GetType());
1182
int cvar = _mwtBadArity.
Meth
().typeVars.Count;
1183
return ErrorHandling.Error(cvar > 0 ? ErrorCode.ERR_BadArity : ErrorCode.ERR_HasNoTypeVars, _mwtBadArity, new ErrArgSymKind(_mwtBadArity.
Meth
()), _pArguments.carg);
Microsoft\CSharp\RuntimeBinder\Semantics\Nullable.cs (1)
16
&& (pCall.MethWithInst?.
Meth
().IsNullableConstructor() ?? false))
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (7)
2333
Debug.Assert(pCall.MethWithInst.
Meth
() != null);
2339
Debug.Assert(pCall.MethWithInst.
Meth
().Params.Count == 2);
2340
if (!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.
Meth
().Params[0], typeRet) ||
2341
!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.
Meth
().Params[1], typeRet))
2577
CType typeRetRaw = TypeManager.SubstType(pmethBest.mpwi.
Meth
().RetType, pmethBest.mpwi.GetType());
2607
CType typeRetRaw = TypeManager.SubstType(mpwi.
Meth
().RetType, mpwi.GetType());
2619
TypeArray paramsRaw = TypeManager.SubstTypeArray(mpwi.
Meth
().Params, mpwi.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs (2)
31
MethodSymbol methSym = Method.
Meth
();
104
MethodSymbol methSym = Method.
Meth
();
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Property.cs (1)
51
var types = (mwtSet.
Meth
()?.AssociatedMemberInfo as MethodInfo)?.ReturnParameter.GetRequiredCustomModifiers();
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (11)
103
CType typeRet = TypeManager.SubstType(mwi.
Meth
().RetType, mwi.GetType(), mwi.TypeArgs);
262
if (expr.MethWithInst.
Meth
().IsConstructor())
274
if (expr.MethWithInst.
Meth
().isStatic || expr.MemberGroup.OptionalObject == null)
305
Debug.Assert(!expr.MethWithInst.
Meth
().isVirtual || expr.MemberGroup.OptionalObject != null);
719
CType pMethodReturnType = TypeManager.SubstType(method.
Meth
().RetType,
834
Debug.Assert(expr.MethWithInst.
Meth
().IsConstructor());
911
ExprCall call = ExprFactory.CreateCall(0, mwi.
Meth
().RetType, arg1, pMemGroup, mwi);
926
ExprCall call = ExprFactory.CreateCall(0, mwi.
Meth
().RetType, args, pMemGroup, mwi);
941
ExprCall call = ExprFactory.CreateCall(0, mwi.
Meth
().RetType, args, pMemGroup, mwi);
956
ExprCall call = ExprFactory.CreateCall(0, mwi.
Meth
().RetType, args, pMemGroup, mwi);
981
MethodSymbol method = expr.UserDefinedCallMethod.
Meth
();
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (5)
125
Debug.Assert(mwi.
Meth
() != null && mwi.GetType() != null && mwi.TypeArgs != null);
126
Debug.Assert(mwi.
Meth
().typeVars.Count == mwi.TypeArgs.Count);
127
Debug.Assert(mwi.GetType().OwningAggregate == mwi.
Meth
().getClass());
131
CheckConstraintsCore(mwi.
Meth
(), mwi.
Meth
().typeVars, mwi.TypeArgs, mwi.GetType().TypeArgsAll, mwi.TypeArgs, CheckConstraintsFlags.None);