Logo Fabulous.AST

TypeDefnModifiers Type

Modifiers for all TypeDefn widgets

Static members

Static member Description

TypeDefnModifiers.attribute (this, attribute)

Full Usage: TypeDefnModifiers.attribute (this, attribute)

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Sets the attribute for the current type definition.

this : WidgetBuilder<TypeDefn>
attribute : WidgetBuilder<AttributeNode>
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.attributes (this, attributes)

Full Usage: TypeDefnModifiers.attributes (this, attributes)

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Sets the attributes for the current type definition.

this : WidgetBuilder<TypeDefn>
attributes : WidgetBuilder<AttributeNode> seq
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.constraints (this, value)

Full Usage: TypeDefnModifiers.constraints (this, value)

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Adds a when constraint after the type name (type 'T Box when 'T: equality = ...).

this : WidgetBuilder<TypeDefn>

Current widget.

value : WidgetBuilder<TypeConstraint>

The constraint.

Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.constraints (this, constraints)

Full Usage: TypeDefnModifiers.constraints (this, constraints)

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Adds when constraints after the type name (type 'T Box when 'T: equality = ...). This is the only place to constrain prefix type parameters (PrefixList); with PostfixList the constraints usually go inside the angle brackets instead. Enums, units of measure and augmentations ignore it.

this : WidgetBuilder<TypeDefn>

Current widget.

constraints : WidgetBuilder<TypeConstraint> seq

The constraints.

Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.members this

Full Usage: TypeDefnModifiers.members this

Parameters:
Returns: AttributeCollectionBuilder<TypeDefn, MemberDefn>
Modifiers: inline

Sets the members for the current type definition.

this : WidgetBuilder<TypeDefn>
Returns: AttributeCollectionBuilder<TypeDefn, MemberDefn>

TypeDefnModifiers.toInternal this

Full Usage: TypeDefnModifiers.toInternal this

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Sets the type definition to be internal.

this : WidgetBuilder<TypeDefn>
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.toInternalRepresentation this

Full Usage: TypeDefnModifiers.toInternalRepresentation this

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Makes the fields of a record or the cases of a union internal (type R = internal { ... }). Use toInternal() to make the type itself internal. Other type definitions ignore it.

this : WidgetBuilder<TypeDefn>
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.toPrivate this

Full Usage: TypeDefnModifiers.toPrivate this

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Sets the type definition to be private.

this : WidgetBuilder<TypeDefn>
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.toPrivateRepresentation this

Full Usage: TypeDefnModifiers.toPrivateRepresentation this

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Makes the fields of a record or the cases of a union private (type R = private { ... }): the type stays visible but can only be constructed and deconstructed inside its module. Use toPrivate() to make the type itself private. Other type definitions ignore it.

this : WidgetBuilder<TypeDefn>
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.toPublic this

Full Usage: TypeDefnModifiers.toPublic this

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Sets the type definition to be public.

this : WidgetBuilder<TypeDefn>
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.toPublicRepresentation this

Full Usage: TypeDefnModifiers.toPublicRepresentation this

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Marks the fields of a record or the cases of a union public (type R = public { ... }). Other type definitions ignore it.

this : WidgetBuilder<TypeDefn>
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.toRecursive this

Full Usage: TypeDefnModifiers.toRecursive this

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Sets the type definition to be recursive.

this : WidgetBuilder<TypeDefn>
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.typeParams (this, typeParams)

Full Usage: TypeDefnModifiers.typeParams (this, typeParams)

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Sets the type parameters for the current type definition.

this : WidgetBuilder<TypeDefn>
typeParams : WidgetBuilder<TyparDecls>
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.xmlDocs (this, xmlDocs)

Full Usage: TypeDefnModifiers.xmlDocs (this, xmlDocs)

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Sets the XmlDocs for the current type definition.

this : WidgetBuilder<TypeDefn>
xmlDocs : string seq
Returns: WidgetBuilder<TypeDefn>

TypeDefnModifiers.xmlDocs (this, xmlDocs)

Full Usage: TypeDefnModifiers.xmlDocs (this, xmlDocs)

Parameters:
Returns: WidgetBuilder<TypeDefn>
Modifiers: inline

Sets the XmlDocs for the current type definition.

this : WidgetBuilder<TypeDefn>
xmlDocs : WidgetBuilder<XmlDocNode>
Returns: WidgetBuilder<TypeDefn>

Type something to start searching.