> ## Documentation Index
> Fetch the complete documentation index at: https://vulhunt-docs.binarly.io/llms.txt
> Use this file to discover all available pages before exploring further.

# AnnotateAssignment

The `AnnotateAssignment` object is used to create an annotation for a variable assignment at a specific address in the code.

### Fields

| Field         | Description               | Type                                                     |
| :------------ | :------------------------ | :------------------------------------------------------- |
| `location`    | Address of the assignment | [`AddressValue`](/vulhunt-reference/types/address-value) |
| `declaration` | Variable declaration      | `string`                                                 |

### Reference

#### location

The address ([`AddressValue`](/vulhunt-reference/types/address-value)) where the assignment occurs.

#### declaration

The variable declaration as a string.

### Example

```lua theme={null}
evidence = {
  functions = {
    [context.caller.address] = {
      annotate:assignment{
        location = <AddressValue>,
        declaration = "int result"
      }
    }
  }
}
```
