Skip to content

Type

A type in an annotation, return type, 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, or the class it is a superclass of. A declaration naming several fields yields one type per field.

Inherits from: Node

Fields

expr @ TypeExpr

The type expression.

type_only @ Bool

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