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