Add ligation configurability
This commit is contained in:
parent
c1c3ce79ee
commit
2e601b641c
14 changed files with 770 additions and 659 deletions
|
@ -88,10 +88,10 @@ class Composite {
|
|||
}
|
||||
resolve(para, selTree, catalog, vs) {
|
||||
if (this.inherits) {
|
||||
for (const item of this.inherits) {
|
||||
if (!catalog.has(item)) throw new Error(`Cannot find composite variant: ${item}`);
|
||||
catalog.get(item).resolve(para, selTree, catalog, vs);
|
||||
if (!catalog.has(this.inherits)) {
|
||||
throw new Error(`Cannot find composite variant: ${this.inherits}`);
|
||||
}
|
||||
catalog.get(this.inherits).resolve(para, selTree, catalog, vs);
|
||||
}
|
||||
for (const [prime, variant] of this.decompose(para, selTree)) {
|
||||
variant.resolve(para, vs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue