Future.Reflect

The reflect module provides proposal-era reflection stubs for fields,
attributes, and types.

Attributes

attr Name

attr Name

No documentation.

Fields:

  • @String name

Data

data Field

data Field

No documentation.

Fields:

  • @String name
  • @Type(AnyType) type
  • @Array @ItemType(Attribute) attributes

data Attribute

data Attribute

No documentation.

Fields:

  • @AnyAttribute attributeType
  • @Array args

Functions

fn typeOf

@Returns(Type)
fn typeOf(@Any value)

No documentation.

fn fieldsOf

@Returns(Array(Field))
fn fieldsOf(@Type type)

No documentation.

fn attribute

@Returns(Result)
@OkType(AnyAttribute)
fn attribute(@Field field, @AttributeType attributeType)

No documentation.

fn hasAttribute

@Returns(Bool)
fn hasAttribute(@Field field, @AttributeType attributeType)

No documentation.