Skip to content

Type

A type in an annotation, return type, alias body, or superclass list.

Its parent is what it describes: the parameter, binding, or field it annotates, the function, method, or lambda whose return type it is, the alias it defines, or the class it is a superclass of. A declaration naming several fields yields one type per field.

Inherits from: Node

Fields

expr @ TypeExpr [get]

The type's form, a child of this node.

type_only @ Bool [get]

Whether this is a supertype written with @, which the class does not inherit from at runtime.