SynType Type
Represents a syntax tree for F# types
Union cases
| Union case |
Description
|
|
F# syntax: _
|
|
|
|
A type arising from a parse error
|
Full Usage:
Fun(argType, returnType, range, trivia)
Parameters:
SynType
returnType : SynType
range : range
trivia : SynTypeFunTrivia
|
F# syntax: type -> type
|
|
|
|
|
|
F# syntax: A.B.C
|
Full Usage:
MeasurePower(baseMeasure, exponent, range)
Parameters:
SynType
exponent : SynRationalConst
range : range
|
F# syntax: for units of measure e.g. m^3, kg^1/2
|
Full Usage:
Or(lhsType, rhsType, range, trivia)
Parameters:
SynType
rhsType : SynType
range : range
trivia : SynTypeOrTrivia
|
F# syntax: ^a or ^b, used in trait calls
|
|
|
|
|
|
|
|
|
|
F# syntax: null, used in parameters to type providers
|
Full Usage:
Tuple(isStruct, path, range)
Parameters:
bool
path : SynTupleTypeSegment list
range : range
|
F# syntax: type * ... * type F# syntax: struct (type * ... * type)
|
|
|
Full Usage:
WithGlobalConstraints(typeName, constraints, range)
Parameters:
SynType
constraints : SynTypeConstraint list
range : range
|
F# syntax: typ with constraints
|
Full Usage:
WithNull(innerType, ambivalent, range, trivia)
Parameters:
SynType
ambivalent : bool
range : range
trivia : SynTypeWithNullTrivia
|
|
Instance members
| Instance member |
Description
|
|
Gets the syntax range of this construct
|
F# Compiler Guide