Header menu logo 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, mSlash, measure2, range)

Full Usage: Divide(measure1, mSlash, measure2, range)

Parameters:

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

measure1 : SynMeasure option
mSlash : range
measure2 : SynMeasure
range : range

Named(longId, range)

Full Usage: Named(longId, range)

Parameters:

A named unit of measure

longId : LongIdent
range : range

One range

Full Usage: One range

Parameters:

The '1' unit of measure

range : range

Paren(measure, range)

Full Usage: Paren(measure, range)

Parameters:

A parenthesized measure

measure : SynMeasure
range : range

Power(measure, caretRange, power, range)

Full Usage: Power(measure, caretRange, power, range)

Parameters:

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

measure : SynMeasure
caretRange : range
power : SynRationalConst
range : range

Product(measure1, mAsterisk, measure2, range)

Full Usage: Product(measure1, mAsterisk, measure2, range)

Parameters:

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

measure1 : SynMeasure
mAsterisk : range
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

Instance members

Instance member Description

this.IsAnon

Full Usage: this.IsAnon

Returns: bool
Returns: bool

this.IsDivide

Full Usage: this.IsDivide

Returns: bool
Returns: bool

this.IsNamed

Full Usage: this.IsNamed

Returns: bool
Returns: bool

this.IsOne

Full Usage: this.IsOne

Returns: bool
Returns: bool

this.IsParen

Full Usage: this.IsParen

Returns: bool
Returns: bool

this.IsPower

Full Usage: this.IsPower

Returns: bool
Returns: bool

this.IsProduct

Full Usage: this.IsProduct

Returns: bool
Returns: bool

this.IsSeq

Full Usage: this.IsSeq

Returns: bool
Returns: bool

this.IsVar

Full Usage: this.IsVar

Returns: bool
Returns: bool

Type something to start searching.