fix: only traversal needs to be dependent of firstSymbol

This commit is contained in:
cha0s 2019-04-30 20:45:54 -05:00
parent b2d588f4e7
commit 3bf8dd44cc

View File

@ -95,8 +95,10 @@ export class TraversalCompiler {
let valueSymbol;
if (traversal.value) {
valueSymbol = this.allocateItem(traversal.value);
if ('traversal' === traversal.value.constructor.type()) {
currentSymbol.dependencies.push(valueSymbol);
}
}
// Allocate steps.
for (const i in rest) {
const step = rest[i];