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