Header menu logo Fabulous.AST

UnionCaseBuilders Module

Type extensions

Type extension Description

Ast.UnionCase(name)

Full Usage: Ast.UnionCase(name)

Parameters:
    name : string - The name of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Create a union case with the specified name.

Extended Type: Ast

name : string

The name of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Ast.UnionCase(name, fields)

Full Usage: Ast.UnionCase(name, fields)

Parameters:
    name : string - The name of the union case.
    fields : WidgetBuilder<FieldNode> list - The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Create a union case with the specified name and fields.

Extended Type: Ast

name : string

The name of the union case.

fields : WidgetBuilder<FieldNode> list

The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Ast.UnionCase(name, fields)

Full Usage: Ast.UnionCase(name, fields)

Parameters:
    name : string - The name of the union case.
    fields : WidgetBuilder<Type> list - The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Create a union case with the specified name and fields.

Extended Type: Ast

name : string

The name of the union case.

fields : WidgetBuilder<Type> list

The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Ast.UnionCase(name, field)

Full Usage: Ast.UnionCase(name, field)

Parameters:
    name : string - The name of the union case.
    field : WidgetBuilder<Type> - The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Create a union case with the specified name and fields.

Extended Type: Ast

name : string

The name of the union case.

field : WidgetBuilder<Type>

The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Ast.UnionCase(name, fields)

Full Usage: Ast.UnionCase(name, fields)

Parameters:
    name : string - The name of the union case.
    fields : string list - The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Create a union case with the specified name and fields.

Extended Type: Ast

name : string

The name of the union case.

fields : string list

The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Ast.UnionCase(name, field)

Full Usage: Ast.UnionCase(name, field)

Parameters:
    name : string - The name of the union case.
    field : WidgetBuilder<FieldNode> - The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Create a union case with the specified name and fields.

Extended Type: Ast

name : string

The name of the union case.

field : WidgetBuilder<FieldNode>

The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Ast.UnionCase(name, field)

Full Usage: Ast.UnionCase(name, field)

Parameters:
    name : string - The name of the union case.
    field : string - The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Create a union case with the specified name and fields.

Extended Type: Ast

name : string

The name of the union case.

field : string

The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Ast.UnionCase(name, fields)

Full Usage: Ast.UnionCase(name, fields)

Parameters:
    name : string - The name of the union case.
    fields : (string * string) list - The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Create a union case with the specified name and fields.

Extended Type: Ast

name : string

The name of the union case.

fields : (string * string) list

The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Ast.UnionCase(name, fields)

Full Usage: Ast.UnionCase(name, fields)

Parameters:
    name : string - The name of the union case.
    fields : (string * WidgetBuilder<Type>) list - The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Create a union case with the specified name and fields.

Extended Type: Ast

name : string

The name of the union case.

fields : (string * WidgetBuilder<Type>) list

The fields of the union case.

Returns: WidgetBuilder<UnionCaseNode>

Type something to start searching.