defaultStatement

Coverity Documentation

Version
latest

Matches the default clause within switch statements.

This pattern only matches nodes of type statement.

Properties

defaultStatement does not expose any new properties.

Inherits properties from:

Example

The defaultStatement pattern matches the statement default: in the following source code:

JavaScript code follows
    switch(i) {
        case 0:
            break;
        default:        // defaultStatement
            break;
    };

See also

switchStatement