AttrArg
class AttrArg Import
Source: use macro::{AttrArg}; compiler/src/prelude/macro.hy One key = value (or positional value, with key == "") attribute argument.
Fields#
| Field | Type | Description |
|---|---|---|
key | string | |
value | string | Literal value as written (strings without their quotes). |
kind | string | "string", "int", "float", "bool" or "ident". |
See also#
Code: Generated coil source: declarations, an expression, statements or a type.Ident: A name as written in source.Expr: A function-style macro argument as written:f(1),a + b,"text".TypeRef: A type annotation as written (not resolved):Vec<int>,json::Value.Attr:#[name(args)]on a declaration, field or variant.Field: A class field, or a field of a record enum variant.Variant: One enum variant.TypeDecl: A class or enum declaration handed to a derive or attribute macro.