Matches where expressions reference a function.
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 representing 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" }
}
}
};