clean up formatting of system module formatter
This commit is contained in:
parent
5337ab5a08
commit
df16bc17e7
@ -142,9 +142,9 @@ export default class SystemFormatter extends AMDFormatter {
|
|||||||
|
|
||||||
return t.arrayExpression(map(this.ids, function (uid, source) {
|
return t.arrayExpression(map(this.ids, function (uid, source) {
|
||||||
var state = {
|
var state = {
|
||||||
|
hoistDeclarators: hoistDeclarators,
|
||||||
source: source,
|
source: source,
|
||||||
nodes: [],
|
nodes: []
|
||||||
hoistDeclarators: hoistDeclarators
|
|
||||||
};
|
};
|
||||||
|
|
||||||
scope.traverse(block, runnerSettersVisitor, state);
|
scope.traverse(block, runnerSettersVisitor, state);
|
||||||
@ -161,11 +161,11 @@ export default class SystemFormatter extends AMDFormatter {
|
|||||||
var block = t.blockStatement(program.body);
|
var block = t.blockStatement(program.body);
|
||||||
|
|
||||||
var runner = util.template("system", {
|
var runner = util.template("system", {
|
||||||
MODULE_NAME: moduleNameLiteral,
|
|
||||||
MODULE_DEPENDENCIES: t.arrayExpression(this.buildDependencyLiterals()),
|
MODULE_DEPENDENCIES: t.arrayExpression(this.buildDependencyLiterals()),
|
||||||
EXPORT_IDENTIFIER: this.exportIdentifier,
|
EXPORT_IDENTIFIER: this.exportIdentifier,
|
||||||
SETTERS: this.buildRunnerSetters(block, hoistDeclarators),
|
MODULE_NAME: moduleNameLiteral,
|
||||||
EXECUTE: t.functionExpression(null, [], block)
|
SETTERS: this.buildRunnerSetters(block, hoistDeclarators),
|
||||||
|
EXECUTE: t.functionExpression(null, [], block)
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
var handlerBody = runner.expression.arguments[2].body.body;
|
var handlerBody = runner.expression.arguments[2].body.body;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user