| 1 | {{{#!comment |
| 2 | = Function clause entity = |
| 3 | |
| 4 | |
| 5 | A function clause entity corresponds to an Erlang function clause. |
| 6 | |
| 7 | == Initial selectors == |
| 8 | |
| 9 | Function clause entities can be referred at the start of a query by a selector: |
| 10 | |
| 11 | {{{@clause}}} yields the current function clause |
| 12 | |
| 13 | == Selectors == |
| 14 | |
| 15 | The following selectors can be used on function clause entities. |
| 16 | |
| 17 | In parentheses you find the type of the result elements. |
| 18 | * {{{calls}}} (''function''): The functions called by the given function clause (including the unambiguous dynamic calls). |
| 19 | * {{{dynamic_calls}}} (''function''): The dynamic calls from the given function clause. |
| 20 | * {{{arguments}}} (''expression''): The arguments of the given function clause. |
| 21 | * {{{body}}} (''expression''): The body of the given function clause. |
| 22 | * {{{expression}}} (''expression''): The expressions of the given function clause. |
| 23 | * {{{variables}}} (''variable''): The variables of the given function clause. |
| 24 | * {{{file}}} (''file''): The file defining the function of the given clause. |
| 25 | * {{{function}}} (''function''): The function of the given clause. |
| 26 | |
| 27 | == Properties == |
| 28 | |
| 29 | These properties are defined for function clause entities: |
| 30 | * {{{name}}} (''atom''): The name of the function defining the given function clause. |
| 31 | * {{{arity}}} (''int''): The arity of the function defining the given function clause. |
| 32 | * {{{module}}} (''atom''): Returns the module where the function of the function clause is defined. |
| 33 | * {{{spec}}} (''string''): The specification of the function defining the given function clause. |
| 34 | * {{{index}}} (''int''): The index of the given clause. |
| 35 | }}} |