Matches address-of operations.
In Go, the address-of operation applies only to integers.
This pattern only matches nodes of type expression.
Properties
addressOf produces a record that contains the following property:
| Name | Type | Description |
|---|---|---|
kind |
enum |
Always `int`
|
Inherits properties from:
Example
The following CodeXM pattern matches operations that obtain the address of int variables:
pattern addressOfInt {
addressOf {
.operandType == integerType {
.kind == `int`
}
}
}