Matches label statements.
This pattern only matches nodes of type statement.
Properties
labelStatement produces a record that contains the following properties:
| Name | Type | Description |
|---|---|---|
nameString |
string |
The label string |
targetStatement |
statement |
The statement to which this label is assigned |
Inherits properties from:
- astnode
-  statement
Example
The labelStatement pattern matches the following cases:
lab: x++;.
In this instance, the .nameString property is "lab", and
the .targetStatement property is the statement x++;.