Matches expressions that reference functions.
This pattern only matches nodes of type expression.
Properties
functionReference produces a record that contains the following property:
| Name | Type | Description |
|---|---|---|
functionSymbol |
symbol |
The symbol that represents the function |
Inherits properties from:
Example
The following CodeXM pattern matches calls to a function named example():
pattern callToExample {
functionCall {
.calledExpression == functionReference {
.functionSymbol
== functionSymbol {
.simpleName == "example"
}
}
}
};