public int Accepts(CheezType sub) { Dictionary <string, (CheezType type, object value)> polyTypes = null; // TODO: necessary? //if (SubExprType.IsPolyType) //{ // polyTypes = new Dictionary<string, CheezType>(); // Workspace.CollectPolyTypes(SubExprType, lhs, polyTypes); //} return(SubExprType.Match(sub, polyTypes)); }
public int Accepts(CheezType sub) { return(SubExprType.Match(sub, null)); }