2 writes to typeVars
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
1407
methodSymbol.
typeVars
= GetMethodTypeParameters(method, methodSymbol);
1415
methodSymbol.
typeVars
= TypeArray.Empty;
21 references to typeVars
Microsoft.CSharp (21)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (1)
261
ErrAppendTypeParameters(meth.
typeVars
, pctx);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
598
Debug.Assert(methCur.
typeVars
.Count == 0);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (4)
863
if (_pCurrentSym is MethodSymbol methSym && methSym.
typeVars
.Count != typeArgs.Count)
874
Debug.Assert(methSym.
typeVars
.Count > 0);
888
TypeArray pTypeVars = methSym.
typeVars
;
1182
int cvar = _mwtBadArity.Meth().
typeVars
.Count;
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (2)
123
if (_arity > 0 && (!(symCur is MethodSymbol curMeth) || curMeth.
typeVars
.Count != _arity))
649
int cvar = badMeth.
typeVars
.Count;
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (1)
74
if (_arity > 0 & _mask == symbmask_t.MASK_MethodSymbol && ((MethodSymbol)CurrentSymbol).
typeVars
.Count != _arity)
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (2)
91
Debug.Assert(pMethod.
typeVars
.Count > 0);
103
binder, pMethodFormalParameterTypes, pMethodArguments, pMethod.
typeVars
);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (1)
2457
Debug.Assert(method.
typeVars
.Count == 0);
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (3)
364
methsym.
typeVars
.Count == cMethodTyVars &&
365
TypeManager.SubstEqualTypes(methsym.RetType, returnType, null, methsym.
typeVars
, true) &&
366
TypeManager.SubstEqualTypeArrays(methsym.Params, argumentTypes, null, methsym.
typeVars
))
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (2)
42
for (int ivar = 0; ivar <
typeVars
.Count; ivar++)
44
TypeParameterType var = (TypeParameterType)
typeVars
[ivar];
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs (2)
33
TypeArray genericParams = TypeManager.SubstTypeArray(methSym.Params, aggType, methSym.
typeVars
);
34
CType genericReturn = TypeManager.SubstType(methSym.RetType, aggType, methSym.
typeVars
);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (2)
126
Debug.Assert(mwi.Meth().
typeVars
.Count == mwi.TypeArgs.Count);
131
CheckConstraintsCore(mwi.Meth(), mwi.Meth().
typeVars
, mwi.TypeArgs, mwi.GetType().TypeArgsAll, mwi.TypeArgs, CheckConstraintsFlags.None);