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
|
|
|
Full Usage:
Intersection(typar, types, range, trivia)
Parameters:
SynTypar option
types : SynType list
range : range
trivia : SynTyparDeclTrivia
|
F# syntax: x: #I1 & #I2 F# syntax: x: 't & #I1 & #I2 Shorthand for x: 't when 't :> I1 and 't :> I2
|
|
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
|
|
|
Full Usage:
SignatureParameter(attributes, optional, id, usedType, range)
Parameters:
SynAttributes
optional : bool
id : Ident option
usedType : SynType
range : range
|
F# syntax: a: b, used in signatures and type annotations
|
|
|
|
|
|
|
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
|
Instance members
Instance member |
Description
|
|
Gets the syntax range of this construct
|