Header menu logo Fabulous.AST

EnumCaseBuilders Module

Type extensions

Type extension Description

Ast.EnumCase(name, field)

Full Usage: Ast.EnumCase(name, field)

Parameters:
    name : string - The name of the enum case.
    field : WidgetBuilder<Expr> - The field of the enum case.

Returns: WidgetBuilder<EnumCaseNode>

Create an enum case with the given name and field.

Extended Type: Ast

name : string

The name of the enum case.

field : WidgetBuilder<Expr>

The field of the enum case.

Returns: WidgetBuilder<EnumCaseNode>

Ast.EnumCase(name, field)

Full Usage: Ast.EnumCase(name, field)

Parameters:
    name : string - The name of the enum case.
    field : WidgetBuilder<Constant> - The field of the enum case.

Returns: WidgetBuilder<EnumCaseNode>

Create an enum case with the given name and field.

Extended Type: Ast

name : string

The name of the enum case.

field : WidgetBuilder<Constant>

The field of the enum case.

Returns: WidgetBuilder<EnumCaseNode>

Ast.EnumCase(name, field)

Full Usage: Ast.EnumCase(name, field)

Parameters:
    name : string - The name of the enum case.
    field : string - The field of the enum case.

Returns: WidgetBuilder<EnumCaseNode>

Create an enum case with the given name and field.

Extended Type: Ast

name : string

The name of the enum case.

field : string

The field of the enum case.

Returns: WidgetBuilder<EnumCaseNode>

Type something to start searching.