Matches instances of the address-of ( & ) operator.
This pattern only matches nodes of type expression.
Properties
addressOf produces a record that contains the following property.
| Name | Type | Description |
|---|---|---|
kind |
enum intKind |
The type to find the address of: one of `bool`, `byte`, `char`, `decimal`, `double`,
`dynamic`, `enum`, `float`, `int`, `object`, `sbyte`, `short`,
`string`, `uint`, `ulong`, or `ushort`;
see intKind
|
Inherits properties from:
Example
The following pattern matches operations that obtain the address of int variables:
pattern addressOfInt {
addressOf {
.operandType == integralType {
.kind == `int`
}
}
};