2 writes to typeVars
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
1434
methodSymbol.
typeVars
= GetMethodTypeParameters(method, methodSymbol);
1442
methodSymbol.
typeVars
= TypeArray.Empty;
21 references to typeVars
Microsoft.CSharp (21)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (1)
267
ErrAppendTypeParameters(meth.
typeVars
, pctx);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
610
Debug.Assert(methCur.
typeVars
.Count == 0);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (4)
864
if (_pCurrentSym is MethodSymbol methSym && methSym.
typeVars
.Count != typeArgs.Count)
875
Debug.Assert(methSym.
typeVars
.Count > 0);
889
TypeArray pTypeVars = methSym.
typeVars
;
1183
int cvar = _mwtBadArity.Meth().
typeVars
.Count;
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (2)
124
if (_arity > 0 && (!(symCur is MethodSymbol curMeth) || curMeth.
typeVars
.Count != _arity))
650
int cvar = badMeth.
typeVars
.Count;
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (1)
75
if (_arity > 0 & _mask == symbmask_t.MASK_MethodSymbol && ((MethodSymbol)CurrentSymbol).
typeVars
.Count != _arity)
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (2)
92
Debug.Assert(pMethod.
typeVars
.Count > 0);
104
binder, pMethodFormalParameterTypes, pMethodArguments, pMethod.
typeVars
);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (1)
2517
Debug.Assert(method.
typeVars
.Count == 0);
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (3)
373
methsym.
typeVars
.Count == cMethodTyVars &&
374
TypeManager.SubstEqualTypes(methsym.RetType, returnType, null, methsym.
typeVars
, true) &&
375
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)
34
TypeArray genericParams = TypeManager.SubstTypeArray(methSym.Params, aggType, methSym.
typeVars
);
35
CType genericReturn = TypeManager.SubstType(methSym.RetType, aggType, methSym.
typeVars
);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (2)
128
Debug.Assert(mwi.Meth().
typeVars
.Count == mwi.TypeArgs.Count);
133
CheckConstraintsCore(mwi.Meth(), mwi.Meth().
typeVars
, mwi.TypeArgs, mwi.GetType().TypeArgsAll, mwi.TypeArgs, CheckConstraintsFlags.None);