Logo Fabulous.AST

RecordBuilders Module

Type extensions

Type extension Description

Ast.Record(name)

Full Usage: Ast.Record(name)

Parameters:
    name : string - The name of the record type.

Returns: CollectionBuilder<TypeDefn, FieldNode>

Create a record type with the given name.

Extended Type: Ast

name : string

The name of the record type.

Returns: CollectionBuilder<TypeDefn, FieldNode>

Ast.Spread(value)

Full Usage: Ast.Spread(value)

Parameters:
Returns: WidgetBuilder<TypeSpreadNode>

Create a spread (...Base) that copies the fields of an existing record type into a record definition. Yield it in the body of Record(...). Record spreads need F# 11 or later.

Extended Type: Ast

value : WidgetBuilder<Type>

The record type whose fields are copied.

Returns: WidgetBuilder<TypeSpreadNode>

Ast.Spread(value)

Full Usage: Ast.Spread(value)

Parameters:
    value : string - The record type whose fields are copied.

Returns: WidgetBuilder<TypeSpreadNode>

Create a spread (...Base) of the named record type. Record spreads need F# 11 or later.

Extended Type: Ast

value : string

The record type whose fields are copied.

Returns: WidgetBuilder<TypeSpreadNode>

Type something to start searching.