mirror of
https://github.com/keymanapp/keyman.git
synced 2026-11-03 09:37:47 +00:00
change(web): Apply EB suggestions from code review
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
This commit is contained in:
parent
53bc2288dc
commit
30f2f363b3
2 changed files with 4 additions and 3 deletions
|
|
@ -89,7 +89,7 @@ describe('constituentPaths', () => {
|
|||
return type == 'insert' && typeSeq[index+1] == 'delete';
|
||||
});
|
||||
});
|
||||
assert.isNotOk(shouldOccur);
|
||||
assert.isOk(shouldOccur);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -28,7 +28,8 @@ export function constituentPaths(node: SearchQuotientNode): SearchQuotientSpur[]
|
|||
} else if(node instanceof SearchQuotientCluster) {
|
||||
return node.parents.flatMap((p) => constituentPaths(p));
|
||||
} else if(node instanceof SearchQuotientSpur) {
|
||||
const parentPaths = constituentPaths(node.parents[0]); let pathsToExtend = parentPaths;
|
||||
const parentPaths = constituentPaths(node.parents[0]);
|
||||
let pathsToExtend = parentPaths;
|
||||
|
||||
if(node instanceof InsertionQuotientSpur) {
|
||||
pathsToExtend = pathsToExtend.filter(s => {
|
||||
|
|
@ -36,7 +37,7 @@ export function constituentPaths(node: SearchQuotientNode): SearchQuotientSpur[]
|
|||
|
||||
// Deletion nodes and modules should always be ordered after those for
|
||||
// insertion in order to avoid duplicating search paths. (Insertions may
|
||||
// stick to the right of a root, while deletions always process inputs; they
|
||||
// stick to the right of a root, while deletions always process inputs; insertions
|
||||
// may thus precede deletions.)
|
||||
//
|
||||
// Also, internally, insertion edges are not built after deletion (or empty) edges.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue