Class in macro compiler

TypeRef

class TypeRef
Import
use macro::{TypeRef};
Source: compiler/src/prelude/macro.hy

A type annotation as written (not resolved): Vec<int>, json::Value.

Fields#

FieldTypeDescription
textstring
head_namestring
arg_refsVec<TypeRef>

Methods#

NameDescription
strThe whole annotation, e.g.
src
headThe type constructor, e.g.
argsGeneric arguments, e.g.

See also#

  • Vec
  • 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".
  • AttrArg: One key = value (or positional value, with key == "") attribute argument.
  • 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.
↑ ↓ navigate ↵ open