target property
AstNode?
get
target
The node from which this break statement is breaking, or null
if the AST
hasn't yet been resolved or if the target couldn't be resolved.
This is 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).
Note that if the source code has errors, the target might be invalid. For example, if the break statement is trying to break to a switch case the target will be the switch case even though breaking to a switch case isn't valid.
Implementation
AstNode? get target;