F# Compiler Guide


SynMeasure Type

Represents an unchecked syntax tree of F# unit of measure annotations.

Union cases

Union case Description

Anon range

Full Usage: Anon range

Parameters:

An anonymous (inferred) unit of measure

range : range

Divide(measure1, measure2, range)

Full Usage: Divide(measure1, measure2, range)

Parameters:

A division of two units of measure, e.g. 'kg / m'

measure1 : SynMeasure
measure2 : SynMeasure
range : range

Named(longId, range)

Full Usage: Named(longId, range)

Parameters:

A named unit of measure

longId : LongIdent
range : range

One

Full Usage: One

The '1' unit of measure

Paren(measure, range)

Full Usage: Paren(measure, range)

Parameters:

A parenthesized measure

measure : SynMeasure
range : range

Power(measure, power, range)

Full Usage: Power(measure, power, range)

Parameters:

A power of a unit of measure, e.g. 'kg ^ 2'

measure : SynMeasure
power : SynRationalConst
range : range

Product(measure1, measure2, range)

Full Usage: Product(measure1, measure2, range)

Parameters:

A product of two units of measure, e.g. 'kg * m'

measure1 : SynMeasure
measure2 : SynMeasure
range : range

Seq(measures, range)

Full Usage: Seq(measures, range)

Parameters:

A sequence of several units of measure, e.g. 'kg m m'

measures : SynMeasure list
range : range

Var(typar, range)

Full Usage: Var(typar, range)

Parameters:

A variable unit of measure

typar : SynTypar
range : range