Compilation fixes
This commit is contained in:
Родитель
ef74761f5a
Коммит
f30f2e2213
|
@ -755,6 +755,10 @@ module TDev.AST {
|
|||
public accept(v:NodeVisitor) { return v.visitBreak(this); }
|
||||
public isExecutableStmt() { return true; }
|
||||
|
||||
private emptyExpr = Parser.emptyExpr();
|
||||
public calcNode() { return this.emptyExpr; }
|
||||
public children() { return []; }
|
||||
|
||||
public writeTo(tw:TokenWriter)
|
||||
{
|
||||
this.writeIdOpt(tw);
|
||||
|
|
|
@ -934,7 +934,7 @@ module TDev.AST
|
|||
if (ex != this.unit)
|
||||
r.push(new JsExprStmt(ex));
|
||||
this.resetAnalysisInfo();
|
||||
return s
|
||||
return r
|
||||
}
|
||||
|
||||
private compileInlineAction(inl:InlineAction)
|
||||
|
@ -2175,6 +2175,7 @@ module TDev.AST
|
|||
this.profilingScopes.push(new JsTmpDef("profilingLastCallTimeStamp", new JsLiteral("0")));
|
||||
|
||||
var jsNodes: JsStmt[] = this.dispatch(a.body);
|
||||
jsNodes.push(a._compilerBreakLabel);
|
||||
|
||||
if (this.needsProfiling())
|
||||
jsNodes.unshift(this.profilingScopes.pop());
|
||||
|
@ -2190,7 +2191,6 @@ module TDev.AST
|
|||
|
||||
jsNodes.unshift(lab0);
|
||||
lab0.refs.push(lab0);
|
||||
jsNodes.push(a._compilerBreakLabel);
|
||||
var prevMax = this.maxArgsToCheck + 1;
|
||||
this.insertFinalLabels(jsNodes);
|
||||
jsNodes.forEach((n) => n.forEachExpr((e:JsExpr) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче