target property

AstNode target

Return the node from which this break statement is breaking.

This will be either a Statement (in the case of breaking out of a loop), a SwitchMember (in the case of a labeled break statement whose label matches a label on a switch case in an enclosing switch statement), or null if the AST has not yet been resolved or if the target could not be resolved. Note that if the source code has errors, the target might be invalid (e.g. trying to break to a switch case).

Implementation

AstNode get target;
void target= (AstNode node)

Set the node from which this break statement is breaking to the given node.

Implementation

set target(AstNode node);