Header menu logo Fabulous.AST

ExplicitConstructorBuilders Module

Type extensions

Type extension Description

Ast.Constructor(pattern, expr)

Full Usage: Ast.Constructor(pattern, expr)

Parameters:
Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Creates an explicit constructor with the given pattern and expression.

Extended Type: Ast

pattern : WidgetBuilder<Pattern>

The pattern of the constructor.

expr : WidgetBuilder<Expr>

The expression of the constructor.

Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Ast.Constructor(pattern, expr)

Full Usage: Ast.Constructor(pattern, expr)

Parameters:
Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Creates an explicit constructor with the given pattern and expression.

Extended Type: Ast

pattern : WidgetBuilder<Constant>

The pattern of the constructor.

expr : WidgetBuilder<Expr>

The expression of the constructor.

Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Ast.Constructor(pattern, expr)

Full Usage: Ast.Constructor(pattern, expr)

Parameters:
    pattern : string - The pattern of the constructor.
    expr : WidgetBuilder<Expr> - The expression of the constructor.

Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Creates an explicit constructor with the given pattern and expression.

Extended Type: Ast

pattern : string

The pattern of the constructor.

expr : WidgetBuilder<Expr>

The expression of the constructor.

Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Ast.Constructor(pattern, expr)

Full Usage: Ast.Constructor(pattern, expr)

Parameters:
Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Creates an explicit constructor with the given pattern and expression.

Extended Type: Ast

pattern : WidgetBuilder<Pattern>

The pattern of the constructor.

expr : WidgetBuilder<Constant>

The expression of the constructor.

Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Ast.Constructor(pattern, expr)

Full Usage: Ast.Constructor(pattern, expr)

Parameters:
Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Creates an explicit constructor with the given pattern and expression.

Extended Type: Ast

pattern : WidgetBuilder<Constant>

The pattern of the constructor.

expr : WidgetBuilder<Constant>

The expression of the constructor.

Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Ast.Constructor(pattern, expr)

Full Usage: Ast.Constructor(pattern, expr)

Parameters:
    pattern : WidgetBuilder<Pattern> - The pattern of the constructor.
    expr : string - The expression of the constructor.

Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Creates an explicit constructor with the given pattern and expression.

Extended Type: Ast

pattern : WidgetBuilder<Pattern>

The pattern of the constructor.

expr : string

The expression of the constructor.

Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Ast.Constructor(pattern, expr)

Full Usage: Ast.Constructor(pattern, expr)

Parameters:
    pattern : string - The pattern of the constructor.
    expr : string - The expression of the constructor.

Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Creates an explicit constructor with the given pattern and expression.

Extended Type: Ast

pattern : string

The pattern of the constructor.

expr : string

The expression of the constructor.

Returns: WidgetBuilder<MemberDefnExplicitCtorNode>

Type something to start searching.