Regenerate to avoid warnings
This commit is contained in:
parent
4434f712b6
commit
e187fb83b4
|
@ -220,15 +220,15 @@ export function toSchema(v: _val): undefined | Schema {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromSchema(v: Schema): _val {
|
||||
export function fromSchema(_v: Schema): _val {
|
||||
return _.Record(
|
||||
$schema,
|
||||
[
|
||||
new _.Dictionary<_ptr>(
|
||||
[
|
||||
[$version, fromVersion(v["version"])],
|
||||
[$pointer, fromPointerName(v["pointer"])],
|
||||
[$definitions, fromDefinitions(v["definitions"])]
|
||||
[$version, fromVersion(_v["version"])],
|
||||
[$pointer, fromPointerName(_v["pointer"])],
|
||||
[$definitions, fromDefinitions(_v["definitions"])]
|
||||
]
|
||||
)
|
||||
]
|
||||
|
@ -249,7 +249,7 @@ export function toVersion(v: _val): undefined | Version {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromVersion(v: Version): _val {return $1;}
|
||||
export function fromVersion(_v: Version): _val {return $1;}
|
||||
|
||||
export function asPointerName(v: _val): PointerName {
|
||||
let result = toPointerName(v);
|
||||
|
@ -270,8 +270,8 @@ export function toPointerName(v: _val): undefined | PointerName {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromPointerName(v: PointerName): _val {
|
||||
switch (v._variant) {case "Ref": {return fromRef(v.value);}; case "false": {return __lit5;};};
|
||||
export function fromPointerName(_v: PointerName): _val {
|
||||
switch (_v._variant) {case "Ref": {return fromRef(_v.value);}; case "false": {return __lit5;};};
|
||||
}
|
||||
|
||||
export function asDefinitions(v: _val): Definitions {
|
||||
|
@ -301,8 +301,8 @@ export function toDefinitions(v: _val): undefined | Definitions {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromDefinitions(v: Definitions): _val {
|
||||
return new _.Dictionary<_ptr>(_.Array.from(v.entries()).map(([k, v]) => [k, fromDefinition(v)]));
|
||||
export function fromDefinitions(_v: Definitions): _val {
|
||||
return new _.Dictionary<_ptr>(_.Array.from(_v.entries()).map(([k, v]) => [k, fromDefinition(v)]));
|
||||
}
|
||||
|
||||
export function asDefinition(v: _val): Definition {
|
||||
|
@ -343,10 +343,10 @@ export function toDefinition(v: _val): undefined | Definition {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromDefinition(v: Definition): _val {
|
||||
switch (v._variant) {
|
||||
case "or": {return _.Record($or, [v["patterns"].map(v => fromNamedAlternative(v))]);};
|
||||
case "Alternative": {return fromAlternative(v.value);};
|
||||
export function fromDefinition(_v: Definition): _val {
|
||||
switch (_v._variant) {
|
||||
case "or": {return _.Record($or, [_v["patterns"].map(v => fromNamedAlternative(v))]);};
|
||||
case "Alternative": {return fromAlternative(_v.value);};
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -370,7 +370,7 @@ export function toNamedAlternative(v: _val): undefined | NamedAlternative {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromNamedAlternative(v: NamedAlternative): _val {return [v["variantLabel"], fromAlternative(v["alternative"])];}
|
||||
export function fromNamedAlternative(_v: NamedAlternative): _val {return [_v["variantLabel"], fromAlternative(_v["alternative"])];}
|
||||
|
||||
export function asAlternative(v: _val): Alternative {
|
||||
let result = toAlternative(v);
|
||||
|
@ -410,10 +410,10 @@ export function toAlternative(v: _val): undefined | Alternative {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromAlternative(v: Alternative): _val {
|
||||
switch (v._variant) {
|
||||
case "and": {return _.Record($and, [v["patterns"].map(v => fromNamedPattern(v))]);};
|
||||
case "Pattern": {return fromPattern(v.value);};
|
||||
export function fromAlternative(_v: Alternative): _val {
|
||||
switch (_v._variant) {
|
||||
case "and": {return _.Record($and, [_v["patterns"].map(v => fromNamedPattern(v))]);};
|
||||
case "Pattern": {return fromPattern(_v.value);};
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -436,10 +436,10 @@ export function toPattern(v: _val): undefined | Pattern {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromPattern(v: Pattern): _val {
|
||||
switch (v._variant) {
|
||||
case "SimplePattern": {return fromSimplePattern(v.value);};
|
||||
case "CompoundPattern": {return fromCompoundPattern(v.value);};
|
||||
export function fromPattern(_v: Pattern): _val {
|
||||
switch (_v._variant) {
|
||||
case "SimplePattern": {return fromSimplePattern(_v.value);};
|
||||
case "CompoundPattern": {return fromCompoundPattern(_v.value);};
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -491,13 +491,13 @@ export function toSimplePattern(v: _val): undefined | SimplePattern {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromSimplePattern(v: SimplePattern): _val {
|
||||
switch (v._variant) {
|
||||
export function fromSimplePattern(_v: SimplePattern): _val {
|
||||
switch (_v._variant) {
|
||||
case "any": {return $any;};
|
||||
case "atom": {return _.Record($atom, [fromAtomKind(v["atomKind"])]);};
|
||||
case "atom": {return _.Record($atom, [fromAtomKind(_v["atomKind"])]);};
|
||||
case "pointer": {return _.Record($pointer, []);};
|
||||
case "lit": {return _.Record($lit, [v["value"]]);};
|
||||
case "Ref": {return fromRef(v.value);};
|
||||
case "lit": {return _.Record($lit, [_v["value"]]);};
|
||||
case "Ref": {return fromRef(_v.value);};
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -614,26 +614,26 @@ export function toCompoundPattern(v: _val): undefined | CompoundPattern {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromCompoundPattern(v: CompoundPattern): _val {
|
||||
switch (v._variant) {
|
||||
export function fromCompoundPattern(_v: CompoundPattern): _val {
|
||||
switch (_v._variant) {
|
||||
case "rec": {
|
||||
return _.Record($rec, [fromNamedPattern(v["label"]), fromNamedPattern(v["fields"])]);
|
||||
return _.Record($rec, [fromNamedPattern(_v["label"]), fromNamedPattern(_v["fields"])]);
|
||||
};
|
||||
case "tuple": {return _.Record($tuple, [v["patterns"].map(v => fromNamedPattern(v))]);};
|
||||
case "tuple": {return _.Record($tuple, [_v["patterns"].map(v => fromNamedPattern(v))]);};
|
||||
case "tuple*": {
|
||||
return _.Record(
|
||||
$tuple$STAR$,
|
||||
[
|
||||
v["fixed"].map(v => fromNamedPattern(v)),
|
||||
fromNamedSimplePattern(v["variable"])
|
||||
_v["fixed"].map(v => fromNamedPattern(v)),
|
||||
fromNamedSimplePattern(_v["variable"])
|
||||
]
|
||||
);
|
||||
};
|
||||
case "setof": {return _.Record($setof, [fromSimplePattern(v["pattern"])]);};
|
||||
case "setof": {return _.Record($setof, [fromSimplePattern(_v["pattern"])]);};
|
||||
case "dictof": {
|
||||
return _.Record($dictof, [fromSimplePattern(v["key"]), fromSimplePattern(v["value"])]);
|
||||
return _.Record($dictof, [fromSimplePattern(_v["key"]), fromSimplePattern(_v["value"])]);
|
||||
};
|
||||
case "dict": {return _.Record($dict, [fromDictionaryEntries(v["entries"])]);};
|
||||
case "dict": {return _.Record($dict, [fromDictionaryEntries(_v["entries"])]);};
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -664,8 +664,8 @@ export function toDictionaryEntries(v: _val): undefined | DictionaryEntries {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromDictionaryEntries(v: DictionaryEntries): _val {
|
||||
return new _.Dictionary<_ptr>(_.Array.from(v.entries()).map(([k, v]) => [k, fromNamedSimplePattern(v)]));
|
||||
export function fromDictionaryEntries(_v: DictionaryEntries): _val {
|
||||
return new _.Dictionary<_ptr>(_.Array.from(_v.entries()).map(([k, v]) => [k, fromNamedSimplePattern(v)]));
|
||||
}
|
||||
|
||||
export function asAtomKind(v: _val): AtomKind {
|
||||
|
@ -712,8 +712,8 @@ export function toAtomKind(v: _val): undefined | AtomKind {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromAtomKind(v: AtomKind): _val {
|
||||
switch (v._variant) {
|
||||
export function fromAtomKind(_v: AtomKind): _val {
|
||||
switch (_v._variant) {
|
||||
case "Boolean": {return $Boolean;};
|
||||
case "Float": {return $Float;};
|
||||
case "Double": {return $Double;};
|
||||
|
@ -743,10 +743,10 @@ export function toNamedSimplePattern(v: _val): undefined | NamedSimplePattern {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromNamedSimplePattern(v: NamedSimplePattern): _val {
|
||||
switch (v._variant) {
|
||||
case "named": {return fromNamedSimplePattern_(v.value);};
|
||||
case "anonymous": {return fromSimplePattern(v.value);};
|
||||
export function fromNamedSimplePattern(_v: NamedSimplePattern): _val {
|
||||
switch (_v._variant) {
|
||||
case "named": {return fromNamedSimplePattern_(_v.value);};
|
||||
case "anonymous": {return fromSimplePattern(_v.value);};
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -769,10 +769,10 @@ export function toNamedPattern(v: _val): undefined | NamedPattern {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromNamedPattern(v: NamedPattern): _val {
|
||||
switch (v._variant) {
|
||||
case "named": {return fromNamedSimplePattern_(v.value);};
|
||||
case "anonymous": {return fromPattern(v.value);};
|
||||
export function fromNamedPattern(_v: NamedPattern): _val {
|
||||
switch (_v._variant) {
|
||||
case "named": {return fromNamedSimplePattern_(_v.value);};
|
||||
case "anonymous": {return fromPattern(_v.value);};
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -800,7 +800,7 @@ export function toNamedSimplePattern_(v: _val): undefined | NamedSimplePattern_
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromNamedSimplePattern_(v: NamedSimplePattern_): _val {return _.Record($named, [v["name"], fromSimplePattern(v["pattern"])]);}
|
||||
export function fromNamedSimplePattern_(_v: NamedSimplePattern_): _val {return _.Record($named, [_v["name"], fromSimplePattern(_v["pattern"])]);}
|
||||
|
||||
export function asRef(v: _val): Ref {
|
||||
let result = toRef(v);
|
||||
|
@ -826,7 +826,7 @@ export function toRef(v: _val): undefined | Ref {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromRef(v: Ref): _val {return _.Record($ref, [fromModulePath(v["module"]), v["name"]]);}
|
||||
export function fromRef(_v: Ref): _val {return _.Record($ref, [fromModulePath(_v["module"]), _v["name"]]);}
|
||||
|
||||
export function asModulePath(v: _val): ModulePath {
|
||||
let result = toModulePath(v);
|
||||
|
@ -851,5 +851,5 @@ export function toModulePath(v: _val): undefined | ModulePath {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function fromModulePath(v: ModulePath): _val {return v.map(v => v);}
|
||||
export function fromModulePath(_v: ModulePath): _val {return _v.map(v => v);}
|
||||
|
||||
|
|
Loading…
Reference in New Issue