Header menu logo Fabulous.AST

TypeDefnExplicitBuilders Module

Type extensions

Type extension Description

Ast.ClassEnd(name)

Full Usage: Ast.ClassEnd(name)

Parameters:
    name : string - The name of the class.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Create a class end with the given name.

Extended Type: Ast

name : string

The name of the class.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Ast.ClassEnd(name, constructor)

Full Usage: Ast.ClassEnd(name, constructor)

Parameters:
Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Create a class end with the given name and constructor.

Extended Type: Ast

name : string

The name of the class.

constructor : WidgetBuilder<ImplicitConstructorNode>

The constructor of the class.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Ast.ClassEnd(name, constructor)

Full Usage: Ast.ClassEnd(name, constructor)

Parameters:
    name : string - The name of the class.
    constructor : WidgetBuilder<Pattern> - The constructor of the class.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Create a class end with the given name and constructor.

Extended Type: Ast

name : string

The name of the class.

constructor : WidgetBuilder<Pattern>

The constructor of the class.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Ast.InterfaceEnd(name)

Full Usage: Ast.InterfaceEnd(name)

Parameters:
    name : string - The name of the interface.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Create an interface end with the given name.

Extended Type: Ast

name : string

The name of the interface.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Ast.StructEnd(name)

Full Usage: Ast.StructEnd(name)

Parameters:
    name : string - The name of the struct.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Create a struct end with the given name.

Extended Type: Ast

name : string

The name of the struct.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Ast.StructEnd(name, constructor)

Full Usage: Ast.StructEnd(name, constructor)

Parameters:
Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Create a struct end with the given name and constructor.

Extended Type: Ast

name : string

The name of the struct.

constructor : WidgetBuilder<ImplicitConstructorNode>

The constructor of the struct.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Ast.StructEnd(name, constructor)

Full Usage: Ast.StructEnd(name, constructor)

Parameters:
    name : string - The name of the struct.
    constructor : WidgetBuilder<Pattern> - The constructor of the struct.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Create a struct end with the given name and constructor.

Extended Type: Ast

name : string

The name of the struct.

constructor : WidgetBuilder<Pattern>

The constructor of the struct.

Returns: CollectionBuilder<TypeDefnExplicitNode, MemberDefn>

Type something to start searching.