Matches break statements.
This pattern only matches nodes of type statement.
Properties
breakStatement produces a record that contains the following property:
| Name | Type | Description |
|---|---|---|
controlStatement |
statement |
The flow-of-control statement, such as while,
within which the break occurs
|
Inherits properties from:
- astnode
- statement
Example
The following CodeXM pattern matches break statements
within while loops:
pattern breakFromSwitch {
breakStatement {
.controlStatement == whileLoop
}
};