ParseHelpers Module
Types and nested modules
Type/Module | Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The error raised by the parse_error_rich function, which is called by the parser engine when a syntax error occurs. The first object is the ParseErrorContext which contains a dump of information about the grammar at the point where the error occurred, e.g. what tokens are valid to shift next at that point in the grammar. This information is processed in CompileOps.fs. |
Functions and values
Function or value |
Description
|
Full Usage:
LexerIfdefEval lookup _arg1
Parameters:
string -> bool
_arg1 : LexerIfdefExpression
Returns: bool
|
|
Full Usage:
ParseAssemblyCodeInstructions s reportLibraryOnlyFeatures langVersion strictIndentation m
Parameters:
string
reportLibraryOnlyFeatures : bool
langVersion : LanguageVersion
strictIndentation : bool option
m : range
Returns: ILInstr[]
|
|
Full Usage:
ParseAssemblyCodeType s reportLibraryOnlyFeatures langVersion strictIndentation m
Parameters:
string
reportLibraryOnlyFeatures : bool
langVersion : LanguageVersion
strictIndentation : bool option
m : range
Returns: ILType
|
|
|
|
|
|
Full Usage:
appendValToLeadingKeyword mVal leadingKeyword
Parameters:
range
leadingKeyword : SynLeadingKeyword
Returns: SynLeadingKeyword
|
|
|
|
Full Usage:
checkForMultipleAugmentations m a1 a2
Parameters:
range
a1 : 'a list
a2 : 'a list
Returns: 'a list
|
|
Full Usage:
debugPrint s
Parameters:
'a
|
|
|
|
Full Usage:
grabXmlDoc (parseState, optAttributes, elemIdx)
Parameters:
IParseState
optAttributes : SynAttributeList list
elemIdx : int
Returns: PreXmlDoc
|
|
Full Usage:
grabXmlDocAtRangeStart (parseState, optAttributes, range)
Parameters:
IParseState
optAttributes : SynAttributeList list
range : range
Returns: PreXmlDoc
|
|
Full Usage:
idOfPat parseState m p
Parameters:
IParseState
m : range
p : SynPat
Returns: Ident
|
|
|
|
Full Usage:
mkAutoPropDefn mVal access ident typ mEquals expr (accessors, arg8) xmlDoc attribs (flags, arg12) rangeStart
Parameters:
range
access : SynAccess option
ident : Ident
typ : SynType option
mEquals : range option
expr : SynExpr
accessors : range option
arg7 : SynMemberKind * GetSetKeywords option
xmlDoc : PreXmlDoc
attribs : SynAttributes
flags : SynMemberKind -> SynMemberFlags
arg11 : SynLeadingKeyword
rangeStart : range
Returns: SynMemberDefn
|
|
Full Usage:
mkClassMemberLocalBindings (isStatic, initialRangeOpt, attrs, vis, arg5)
Parameters:
bool
initialRangeOpt : range option
attrs : SynAttributes
vis : SynAccess option
arg4 : BindingSet
Returns: SynMemberDefn
|
|
Full Usage:
mkDefnBindings (mWhole, arg2, attrs, vis, attrsm)
Parameters:
range
arg1 : BindingSet
attrs : SynAttributes
vis : SynAccess option
attrsm : range
Returns: SynModuleDecl list
|
|
Full Usage:
mkLocalBindings (mWhole, arg2, mIn, body)
Parameters:
range
arg1 : BindingSet
mIn : range option
body : SynExpr
Returns: SynExpr
|
|
|
|
|
|
|
|
Full Usage:
mkSynField parseState idOpt t isMutable vis attributes mStatic rangeStart leadingKeyword
Parameters:
IParseState
idOpt : Ident option
t : SynType option
isMutable : range option
vis : SynAccess option
attributes : SynAttributeList list
mStatic : range option
rangeStart : range
leadingKeyword : SynLeadingKeyword option
Returns: SynField
|
|
Full Usage:
mkSynMemberDefnGetSet parseState opt_inline mWith classDefnMemberGetSetElements mAnd mWhole propertyNameBindingPat optPropertyType visNoLongerUsed (flagsBuilderAndLeadingKeyword, arg11) attrs rangeStart
Parameters:
IParseState
opt_inline : range option
mWith : range
classDefnMemberGetSetElements : (range option * SynAttributeList list * (SynPat * range) * (range option * SynReturnInfo) option * range option * SynExpr * range) list
mAnd : range option
mWhole : range
propertyNameBindingPat : SynPat
optPropertyType : (range option * SynReturnInfo) option
visNoLongerUsed : SynAccess option
flagsBuilderAndLeadingKeyword : SynMemberKind -> SynMemberFlags
arg10 : SynLeadingKeyword
attrs : SynAttributeList list
rangeStart : range
Returns: SynMemberDefn list
|
|
|
|
Full Usage:
mkSynTypeTuple elementTypes
Parameters:
SynTupleTypeSegment list
Returns: SynType
|
|
Full Usage:
mkSynUnionCase attributes access id kind mDecl arg6
Parameters:
SynAttributes
access : SynAccess option
id : SynIdent
kind : SynUnionCaseKind
mDecl : range
arg5 : PreXmlDoc * range
Returns: SynUnionCase
|
|
|
|
Full Usage:
mkValField parseState mVal isMutable access idOpt typ rangeStart arg8 arg9
Parameters:
IParseState
mVal : range
isMutable : range option
access : SynAccess option
idOpt : Ident option
typ : SynType option
rangeStart : range
arg7 : SynAttributes
arg8 : range option
Returns: SynMemberDefn
|
|
|
|
|
|
|
|
|
|
Full Usage:
rebindRanges first fields lastSep
Parameters:
RecordFieldName * range option * SynExpr option
fields : ((RecordFieldName * range option * SynExpr option) * BlockSeparator option) list
lastSep : BlockSeparator option
Returns: SynExprRecordField list
|
|
|
|
|
|
|
|
|
|
Full Usage:
warningStringOfCoords line column
Parameters:
int
column : int
Returns: string
|
|
|
|
Type extensions
Type extension |
Description
|
|
|
|
|
Full Usage:
this.ResetSynArgNameGenerator
Parameters:
unit
|
Extended Type:
|
|
|
|
Extended Type:
|