aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-09-15 16:05:01 +0300
committerMihai Bazon <mihai@bazon.net>2012-09-15 16:05:17 +0300
commit4e0262bdfb4097a2d2ff000d38f5c847631f0eb2 (patch)
treef6e19b28ce920d9b0f3a2f252e0308fe0959e398 /lib/ast.js
parent86c14d0988960b5fc52551f143f0ae4361794b4b (diff)
downloadtracifyjs-4e0262bdfb4097a2d2ff000d38f5c847631f0eb2.tar.gz
tracifyjs-4e0262bdfb4097a2d2ff000d38f5c847631f0eb2.zip
figure out label targets
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ast.js b/lib/ast.js
index 1a792861..55e95033 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -287,7 +287,7 @@ var AST_Throw = DEFNODE("Throw", null, {
$documentation: "A `throw` statement"
}, AST_Exit);
-var AST_LoopControl = DEFNODE("LoopControl", "label", {
+var AST_LoopControl = DEFNODE("LoopControl", "label loopcontrol_target", {
$documentation: "Base class for loop control statements (`break` and `continue`)",
_walk: function(visitor) {
return visitor._visit(this, this.label && function(){
@@ -614,7 +614,7 @@ var AST_SymbolCatch = DEFNODE("SymbolCatch", null, {
$documentation: "Symbol naming the exception in catch",
}, AST_SymbolDeclaration);
-var AST_Label = DEFNODE("Label", null, {
+var AST_Label = DEFNODE("Label", "label_target", {
$documentation: "Symbol naming a label (declaration)",
}, AST_SymbolDeclaration);