move logic to flow plugin

This commit is contained in:
Vladimir Kurchatkin
2016-06-24 20:23:02 +03:00
parent d5f75cb2f0
commit f0c7660980
2 changed files with 15 additions and 6 deletions

View File

@@ -1075,4 +1075,14 @@ export default function (instance) {
return inner.call(this, node);
};
});
instance.extend("isClassMutatorStarter", function (inner) {
return function () {
if (this.isRelational("<")) {
return true;
} else {
return inner.call(this);
}
};
});
}