Matches calls to functions.
This pattern only matches nodes of type expression.
Properties
functionCall produces a record that contains the following properties:
| Name | Type | Description |
|---|---|---|
argumentList |
list<expression> |
The arguments passed to the function |
calledExpression |
expression |
The expression of the function being called |
calledFunction |
functionSymbol |
The symbol of the function being called |
Inherits properties from:
Example
The following CodeXM pattern finds function calls being passed arguments that are not variable references:
pattern nonReferenceArgument {
functionCall as fn where
exists a in fn.argumentList where
! ( a matches variableReference )
};