Header menu logo Fabulous.AST

ConstantBuilders Module

Type extensions

Type extension Description

Ast.Backticks(value)

Full Usage: Ast.Backticks(value)

Parameters:
    value : string - The identifier value.

Returns: WidgetBuilder<Constant>

Creates a backtick-quoted identifier constant.

Extended Type: Ast

value : string

The identifier value.

Returns: WidgetBuilder<Constant>

Ast.Backticks(value)

Full Usage: Ast.Backticks(value)

Parameters:
Returns: WidgetBuilder<Constant>

Creates a backtick-quoted identifier constant from another constant.

Extended Type: Ast

value : WidgetBuilder<Constant>

The constant value to wrap in backticks.

Returns: WidgetBuilder<Constant>

Ast.Bool(value)

Full Usage: Ast.Bool(value)

Parameters:
    value : bool - The boolean value.

Returns: WidgetBuilder<Constant>

Creates a boolean constant.

Extended Type: Ast

value : bool

The boolean value.

Returns: WidgetBuilder<Constant>

Ast.Byte(value)

Full Usage: Ast.Byte(value)

Parameters:
    value : byte - The byte value.

Returns: WidgetBuilder<Constant>

Creates a byte constant.

Extended Type: Ast

value : byte

The byte value.

Returns: WidgetBuilder<Constant>

Ast.Char(value)

Full Usage: Ast.Char(value)

Parameters:
    value : char - The character value.

Returns: WidgetBuilder<Constant>

Creates a character constant.

Extended Type: Ast

value : char

The character value.

Returns: WidgetBuilder<Constant>

Ast.Constant(value)

Full Usage: Ast.Constant(value)

Parameters:
    value : string - The constant value as a string.

Returns: WidgetBuilder<Constant>

Creates a custom constant with the specified value.

Extended Type: Ast

value : string

The constant value as a string.

Returns: WidgetBuilder<Constant>

Ast.Decimal(value)

Full Usage: Ast.Decimal(value)

Parameters:
    value : decimal - The decimal value.

Returns: WidgetBuilder<Constant>

Creates a decimal constant.

Extended Type: Ast

value : decimal

The decimal value.

Returns: WidgetBuilder<Constant>

Ast.Double(value)

Full Usage: Ast.Double(value)

Parameters:
    value : double - The double-precision floating-point value.

Returns: WidgetBuilder<Constant>

Creates a double-precision floating-point constant.

Extended Type: Ast

value : double

The double-precision floating-point value.

Returns: WidgetBuilder<Constant>

Ast.Float(value)

Full Usage: Ast.Float(value)

Parameters:
    value : float - The floating-point value.

Returns: WidgetBuilder<Constant>

Creates a floating-point constant.

Extended Type: Ast

value : float

The floating-point value.

Returns: WidgetBuilder<Constant>

Ast.Float32(value)

Full Usage: Ast.Float32(value)

Parameters:
    value : float32 - The 32-bit floating-point value.

Returns: WidgetBuilder<Constant>

Creates a 32-bit floating-point constant.

Extended Type: Ast

value : float32

The 32-bit floating-point value.

Returns: WidgetBuilder<Constant>

Ast.Int(value)

Full Usage: Ast.Int(value)

Parameters:
    value : int - The 32-bit integer value.

Returns: WidgetBuilder<Constant>

Creates a 32-bit integer constant.

Extended Type: Ast

value : int

The 32-bit integer value.

Returns: WidgetBuilder<Constant>

Ast.Int16(value)

Full Usage: Ast.Int16(value)

Parameters:
    value : int16 - The 16-bit integer value.

Returns: WidgetBuilder<Constant>

Creates a 16-bit integer constant.

Extended Type: Ast

value : int16

The 16-bit integer value.

Returns: WidgetBuilder<Constant>

Ast.Int64(value)

Full Usage: Ast.Int64(value)

Parameters:
    value : int64 - The 64-bit integer value.

Returns: WidgetBuilder<Constant>

Creates a 64-bit integer constant.

Extended Type: Ast

value : int64

The 64-bit integer value.

Returns: WidgetBuilder<Constant>

Ast.IntPtr(value)

Full Usage: Ast.IntPtr(value)

Parameters:
    value : IntPtr - The native integer value.

Returns: WidgetBuilder<Constant>

Creates a native integer constant.

Extended Type: Ast

value : IntPtr

The native integer value.

Returns: WidgetBuilder<Constant>

Ast.SByte(value)

Full Usage: Ast.SByte(value)

Parameters:
    value : sbyte - The signed byte value.

Returns: WidgetBuilder<Constant>

Creates a signed byte constant.

Extended Type: Ast

value : sbyte

The signed byte value.

Returns: WidgetBuilder<Constant>

Ast.Single(value)

Full Usage: Ast.Single(value)

Parameters:
    value : single - The single-precision floating-point value.

Returns: WidgetBuilder<Constant>

Creates a single-precision floating-point constant.

Extended Type: Ast

value : single

The single-precision floating-point value.

Returns: WidgetBuilder<Constant>

Ast.String(value)

Full Usage: Ast.String(value)

Parameters:
    value : string - The string value.

Returns: WidgetBuilder<Constant>

Creates a string constant with proper escaping.

Extended Type: Ast

value : string

The string value.

Returns: WidgetBuilder<Constant>

Ast.String(value)

Full Usage: Ast.String(value)

Parameters:
Returns: WidgetBuilder<Constant>

Creates a string constant from another constant.

Extended Type: Ast

value : WidgetBuilder<Constant>

The constant value to wrap as a string.

Returns: WidgetBuilder<Constant>

Ast.UInt16(value)

Full Usage: Ast.UInt16(value)

Parameters:
    value : uint16 - The unsigned 16-bit integer value.

Returns: WidgetBuilder<Constant>

Creates an unsigned 16-bit integer constant.

Extended Type: Ast

value : uint16

The unsigned 16-bit integer value.

Returns: WidgetBuilder<Constant>

Ast.UInt32(value)

Full Usage: Ast.UInt32(value)

Parameters:
    value : uint32 - The unsigned 32-bit integer value.

Returns: WidgetBuilder<Constant>

Creates an unsigned 32-bit integer constant.

Extended Type: Ast

value : uint32

The unsigned 32-bit integer value.

Returns: WidgetBuilder<Constant>

Ast.UInt64(value)

Full Usage: Ast.UInt64(value)

Parameters:
    value : uint64 - The unsigned 64-bit integer value.

Returns: WidgetBuilder<Constant>

Creates an unsigned 64-bit integer constant.

Extended Type: Ast

value : uint64

The unsigned 64-bit integer value.

Returns: WidgetBuilder<Constant>

Ast.UIntPtr(value)

Full Usage: Ast.UIntPtr(value)

Parameters:
    value : UIntPtr - The unsigned native integer value.

Returns: WidgetBuilder<Constant>

Creates an unsigned native integer constant.

Extended Type: Ast

value : UIntPtr

The unsigned native integer value.

Returns: WidgetBuilder<Constant>

Ast.VerbatimString(value)

Full Usage: Ast.VerbatimString(value)

Parameters:
    value : string - The raw string value.

Returns: WidgetBuilder<Constant>

Creates a raw (verbatim) string constant.

Extended Type: Ast

value : string

The raw string value.

Returns: WidgetBuilder<Constant>

Ast.VerbatimString(value)

Full Usage: Ast.VerbatimString(value)

Parameters:
Returns: WidgetBuilder<Constant>

Creates a raw (verbatim) string constant from another constant.

Extended Type: Ast

value : WidgetBuilder<Constant>

The constant value to wrap as a raw string.

Returns: WidgetBuilder<Constant>

Type something to start searching.