labelStatement

Coverity Documentation

Version
latest

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:

Example

The labelStatement pattern matches the following cases:

JavaScript code follows
    lab: x++;
.

In this instance, the .nameString property is "lab", and the .targetStatement property is the statement x++;.