50 references to Meth
Microsoft.CSharp (50)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (2)
852
MethodSymbol method = call.MethWithInst.
Meth
();
873
methprop = call.MethWithInst.
Meth
();
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (5)
910
typeFrom = TypeManager.SubstType(uci.Meth.
Meth
().Params[0], uci.Meth.GetType());
911
typeTo = TypeManager.SubstType(uci.Meth.
Meth
().RetType, uci.Meth.GetType());
1007
MethWithInst mwiBest = new MethWithInst(prguci[iuciBest].Meth.
Meth
(), prguci[iuciBest].Meth.GetType(), null);
1011
typeFrom = TypeManager.SubstType(mwiBest.
Meth
().Params[0], mwiBest.GetType());
1012
typeTo = TypeManager.SubstType(mwiBest.
Meth
().RetType, mwiBest.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (11)
401
Debug.Assert(mwi.Sym is MethodSymbol && (!mwi.
Meth
().isOverride || mwi.
Meth
().isHideByName));
417
pReturnType = TypeManager.SubstType(mwi.
Meth
().RetType, mwi.GetType(), mwi.TypeArgs);
523
ACCESSERROR error = CSemanticChecker.CheckAccess2(mwtGet.
Meth
(), mwtGet.GetType(), ContextForMemberLookup, type);
675
CType typeRet = TypeManager.SubstType(mpwi.
Meth
().RetType, mpwi.GetType());
697
CType typeRet = TypeManager.SubstType(mpwi.
Meth
().RetType, mpwi.GetType());
859
switch (CSemanticChecker.CheckAccess2(mwt.
Meth
(), mwt.GetType(), ContextForMemberLookup, type))
864
throw ErrorHandling.Error(mwt.
Meth
().isSetAccessor() ? ErrorCode.ERR_InaccessibleSetter : ErrorCode.ERR_InaccessibleGetter, pwtSlot);
934
MethodSymbol meth = pMWI.
Meth
();
1002
if ((swt.Sym is MethodSymbol) && swt.
Meth
().IsConstructor())
1419
if (conv.Meth.
Meth
() == meth &&
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
62
CreateMethodInfo(mwi.
Meth
(), mwi.GetType(), mwi.TypeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (4)
604
var slotMethod = method.swtSlot?.
Meth
();
1177
MethWithType mwtCantInfer = new MethWithType(_results.UninferableResult.
Meth
(), _results.UninferableResult.GetType());
1183
int cvar = _mwtBadArity.
Meth
().typeVars.Count;
1184
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)
2390
Debug.Assert(pCall.MethWithInst.
Meth
() != null);
2396
Debug.Assert(pCall.MethWithInst.
Meth
().Params.Count == 2);
2397
if (!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.
Meth
().Params[0], typeRet) ||
2398
!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.
Meth
().Params[1], typeRet))
2640
CType typeRetRaw = TypeManager.SubstType(pmethBest.mpwi.
Meth
().RetType, pmethBest.mpwi.GetType());
2672
CType typeRetRaw = TypeManager.SubstType(mpwi.
Meth
().RetType, mpwi.GetType());
2684
TypeArray paramsRaw = TypeManager.SubstTypeArray(mpwi.
Meth
().Params, mpwi.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs (2)
32
MethodSymbol methSym = Method.
Meth
();
105
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)
104
CType typeRet = TypeManager.SubstType(mwi.
Meth
().RetType, mwi.GetType(), mwi.TypeArgs);
263
if (expr.MethWithInst.
Meth
().IsConstructor())
275
if (expr.MethWithInst.
Meth
().isStatic || expr.MemberGroup.OptionalObject == null)
306
Debug.Assert(!expr.MethWithInst.
Meth
().isVirtual || expr.MemberGroup.OptionalObject != null);
720
CType pMethodReturnType = TypeManager.SubstType(method.
Meth
().RetType,
835
Debug.Assert(expr.MethWithInst.
Meth
().IsConstructor());
912
ExprCall call = ExprFactory.CreateCall(0, mwi.
Meth
().RetType, arg1, pMemGroup, mwi);
927
ExprCall call = ExprFactory.CreateCall(0, mwi.
Meth
().RetType, args, pMemGroup, mwi);
942
ExprCall call = ExprFactory.CreateCall(0, mwi.
Meth
().RetType, args, pMemGroup, mwi);
957
ExprCall call = ExprFactory.CreateCall(0, mwi.
Meth
().RetType, args, pMemGroup, mwi);
982
MethodSymbol method = expr.UserDefinedCallMethod.
Meth
();
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (5)
127
Debug.Assert(mwi.
Meth
() != null && mwi.GetType() != null && mwi.TypeArgs != null);
128
Debug.Assert(mwi.
Meth
().typeVars.Count == mwi.TypeArgs.Count);
129
Debug.Assert(mwi.GetType().OwningAggregate == mwi.
Meth
().getClass());
133
CheckConstraintsCore(mwi.
Meth
(), mwi.
Meth
().typeVars, mwi.TypeArgs, mwi.GetType().TypeArgsAll, mwi.TypeArgs, CheckConstraintsFlags.None);