Function

package haxe.macro

import haxe.macro.Expr

Available on all platforms

Represents a function in the AST.

Fields

ret:Null<ComplexType>

The return type-hint of the function, if available.

optionalparams:Null<Array<TypeParamDecl>>

An optional list of function parameter type declarations.

expr:Null<Expr>

The expression of the function body, if available.

args:Array<FunctionArg>

A list of function arguments.

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