public CheckGenericConstruction ( Node node, IEntity definition, IType argumentTypes, CompilerErrorCollection errors ) : bool | ||
node | Node | |
definition | IEntity | |
argumentTypes | IType | |
errors | CompilerErrorCollection | |
리턴 | bool |
public bool CheckGenericConstruction(Node node, IEntity definition, IType[] argumentTypes, CompilerErrorCollection errors)
{
GenericConstructionChecker checker = new GenericConstructionChecker(
TypeSystemServices, node, argumentTypes, Errors);
return !(
checker.NotGenericDefinition(definition) ||
checker.IncorrectGenerity(definition) ||
checker.ViolatesParameterConstraints(definition));
}