Matches expressions that reference an enum.
This pattern only matches nodes of type expression.
Properties
enumReference produces a record that contains the following property:
| Name | Type | Description |
|---|---|---|
enumVariableSymbol |
symbol |
The symbol that refers to this enum
|
Inherits properties from:
Example
The following CodeXM pattern matches enum instances that have the identifer Example:
pattern enumReferenceExample {
enumReference {
.enumVariableSymbol == enumVariableSymbol { .simpleName == "Example" }
}
};