W3cubDocs

/Haxe

ComplexType

package haxe.macro

import haxe.macro.Expr

Available on all platforms

Represents a type syntax in the AST.

Values

TPath(p:TypePath)

Represents the type path.

TFunction(args:Array<ComplexType>, ret:ComplexType)

Represents a function type.

See:

TAnonymous(fields:Array<Field>)

Represents an anonymous structure type.

See:

TParent(t:ComplexType)

Represents parentheses around a type, e.g. the (Int -> Void) part in (Int -> Void) -> String.

TExtend(p:Array<TypePath>, fields:Array<Field>)

Represents typedef extensions > Iterable<T>. The array p holds the type paths to the given types.

See:

TOptional(t:ComplexType)

Represents an optional type.

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/macro/ComplexType.html