Lines Matching refs:schema
20 function addSchema (schema, arity) {
21 const group = arity[schema.length] = arity[schema.length] || []
22 if (group.indexOf(schema) === -1) group.push(schema)
34 schemas.forEach(schema => {
35 for (let ii = 0; ii < schema.length; ++ii) {
36 const type = schema[ii]
39 if (/E.*E/.test(schema)) throw moreThanOneError(schema)
40 addSchema(schema, arity)
41 if (/E/.test(schema)) {
42 addSchema(schema.replace(/E.*$/, 'E'), arity)
43 addSchema(schema.replace(/E/, 'Z'), arity)
44 if (schema.length === 1) addSchema('', arity)
52 let newMatching = matching.filter(schema => {
53 const type = schema[ii]
94 function moreThanOneError (schema) {
96 'Only one error type per argument signature is allowed, more than one found in "' + schema + '"')