figure out label targets
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user