13 references to CheckConstraintsFlags
Microsoft.CSharp (13)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
918
bool constraintErrors = !TypeBind.CheckConstraints(var,
CheckConstraintsFlags
.NoErrors);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (11)
36
public static bool CheckConstraints(CType type,
CheckConstraintsFlags
flags)
69
if ((flags &
CheckConstraintsFlags
.NoErrors) != 0)
83
if (ats.OuterType != null && ((flags &
CheckConstraintsFlags
.Outer) != 0 || !ats.OuterType.ConstraintError.HasValue))
94
if (!CheckConstraintsCore(ats.OwningAggregate, typeVars, typeArgsThis, typeArgsAll, null, flags &
CheckConstraintsFlags
.NoErrors))
107
CheckConstraints(atArg, flags |
CheckConstraintsFlags
.Outer);
131
CheckConstraintsCore(mwi.Meth(), mwi.Meth().typeVars, mwi.TypeArgs, mwi.GetType().TypeArgsAll, mwi.TypeArgs,
CheckConstraintsFlags
.None);
140
private static bool CheckConstraintsCore(Symbol symErr, TypeArray typeVars, TypeArray typeArgs, TypeArray typeArgsCls, TypeArray typeArgsMeth,
CheckConstraintsFlags
flags)
144
Debug.Assert(flags ==
CheckConstraintsFlags
.None || flags ==
CheckConstraintsFlags
.NoErrors);
162
private static bool CheckSingleConstraint(Symbol symErr, TypeParameterType var, CType arg, TypeArray typeArgsCls, TypeArray typeArgsMeth,
CheckConstraintsFlags
flags)
167
bool fReportErrors = 0 == (flags &
CheckConstraintsFlags
.NoErrors);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
714
if (!TypeBind.CheckConstraints(intermediateType,
CheckConstraintsFlags
.NoErrors))