SynConst Type
The unchecked abstract syntax tree of constants in F# types and expressions.
Union cases
Union case |
Description
|
Full Usage:
Bool bool
Parameters:
bool
|
F# syntax: true, false
|
Full Usage:
Byte byte
Parameters:
byte
|
F# syntax: 13uy, 0x40uy, 0oFFuy, 0b0111101uy
|
Full Usage:
Bytes(bytes, synByteStringKind, range)
Parameters:
byte[]
synByteStringKind : SynByteStringKind
range : range
|
F# syntax: verbatim or regular byte string, e.g. "abc"B. Also used internally in the typechecker once an array of unit16 constants is detected, to allow more efficient processing of large arrays of uint16 constants.
|
Full Usage:
Char char
Parameters:
char
|
F# syntax: 'a'
|
|
F# syntax: 23.4M
|
Full Usage:
Double double
Parameters:
double
|
F# syntax: 1.30, 1.40e10 etc.
|
Full Usage:
Int16 int16
Parameters:
int16
|
F# syntax: 13s, 0x4000s, 0o0777s, 0b0111101s
|
Full Usage:
Int32 int32
Parameters:
int32
|
F# syntax: 13, 0x4000, 0o0777
|
Full Usage:
Int64 int64
Parameters:
int64
|
F# syntax: 13L
|
Full Usage:
IntPtr int64
Parameters:
int64
|
F# syntax: 13n
|
Full Usage:
Measure(constant, constantRange, synMeasure, trivia)
Parameters:
SynConst
constantRange : range
synMeasure : SynMeasure
trivia : SynMeasureConstantTrivia
|
Old comment: "we never iterate, so the const here is not another SynConst.Measure"
|
Full Usage:
SByte sbyte
Parameters:
sbyte
|
F# syntax: 13y, 0xFFy, 0o077y, 0b0111101y
|
Full Usage:
Single single
Parameters:
single
|
F# syntax: 1.30f, 1.40e10f etc.
|
Full Usage:
SourceIdentifier(constant, value, range)
Parameters:
string
value : string
range : range
|
Source Line, File, and Path Identifiers Containing both the original value as the evaluated value.
|
Full Usage:
String(text, synStringKind, range)
Parameters:
string
synStringKind : SynStringKind
range : range
|
F# syntax: verbatim or regular string, e.g. "abc"
|
Full Usage:
UInt16 uint16
Parameters:
uint16
|
F# syntax: 13us, 0x4000us, 0o0777us, 0b0111101us
|
Full Usage:
UInt16s uint16[]
Parameters:
uint16[]
|
Used internally in the typechecker once an array of unit16 constants is detected, to allow more efficient processing of large arrays of uint16 constants.
|
Full Usage:
UInt32 uint32
Parameters:
uint32
|
F# syntax: 13u, 0x4000u, 0o0777u
|
Full Usage:
UInt64 uint64
Parameters:
uint64
|
F# syntax: 13UL
|
Full Usage:
UIntPtr uint64
Parameters:
uint64
|
F# syntax: 13un
|
Full Usage:
Unit
|
F# syntax: () |
Full Usage:
UserNum(value, suffix)
Parameters:
string
suffix : string
|
UserNum(value, suffix) F# syntax: 1Q, 1Z, 1R, 1N, 1G
|
Instance members
Instance member |
Description
|
Full Usage:
this.IsBool
Returns: bool
|
|
Full Usage:
this.IsByte
Returns: bool
|
|
Full Usage:
this.IsBytes
Returns: bool
|
|
Full Usage:
this.IsChar
Returns: bool
|
|
Full Usage:
this.IsDecimal
Returns: bool
|
|
Full Usage:
this.IsDouble
Returns: bool
|
|
Full Usage:
this.IsInt16
Returns: bool
|
|
Full Usage:
this.IsInt32
Returns: bool
|
|
Full Usage:
this.IsInt64
Returns: bool
|
|
Full Usage:
this.IsIntPtr
Returns: bool
|
|
Full Usage:
this.IsMeasure
Returns: bool
|
|
Full Usage:
this.IsSByte
Returns: bool
|
|
Full Usage:
this.IsSingle
Returns: bool
|
|
Full Usage:
this.IsSourceIdentifier
Returns: bool
|
|
Full Usage:
this.IsString
Returns: bool
|
|
Full Usage:
this.IsUInt16
Returns: bool
|
|
Full Usage:
this.IsUInt16s
Returns: bool
|
|
Full Usage:
this.IsUInt32
Returns: bool
|
|
Full Usage:
this.IsUInt64
Returns: bool
|
|
Full Usage:
this.IsUIntPtr
Returns: bool
|
|
Full Usage:
this.IsUnit
Returns: bool
|
|
Full Usage:
this.IsUserNum
Returns: bool
|
|
|