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:
- astnode
- statement
Example
The defaultStatement pattern matches the statement default: in the following source code:
switch(i) {
case 0:
break;
default: // defaultStatement
break;
};