ParsedInput Module
Operations querying the entire syntax tree
Functions and values
Function or value |
Description
|
Full Usage:
AdjustInsertionPoint getLineStr ctx
Parameters:
int -> string
ctx : InsertionContext
Returns: pos
|
Corrects insertion line number based on kind of scope and text surrounding the insertion point.
|
Full Usage:
FindNearestPointToInsertOpenDeclaration currentLine parsedInput entity insertionPoint
Parameters:
int
parsedInput : ParsedInput
entity : ShortIdents
insertionPoint : OpenStatementInsertionPoint
Returns: InsertionContext
|
Returns `InsertContext` based on current position and symbol idents.
|
Full Usage:
GetEntityKind (pos, parsedInput)
Parameters:
pos
parsedInput : ParsedInput
Returns: EntityKind option
|
|
Full Usage:
GetFullNameOfSmallestModuleOrNamespaceAtPoint (pos, parsedInput)
Parameters:
pos
parsedInput : ParsedInput
Returns: string[]
|
|
Full Usage:
GetLongIdentAt parsedInput pos
Parameters:
ParsedInput
pos : pos
Returns: LongIdent option
|
|
Full Usage:
GetRangeOfExprLeftOfDot (pos, parsedInput)
Parameters:
pos
parsedInput : ParsedInput
Returns: range option
|
|
Full Usage:
TryFindExpressionASTLeftOfDotLeftOfCursor (pos, parsedInput)
Parameters:
pos
parsedInput : ParsedInput
Returns: (pos * bool) option
|
|
Full Usage:
TryFindExpressionIslandInPosition (pos, parsedInput)
Parameters:
pos
parsedInput : ParsedInput
Returns: string option
|
|
Full Usage:
TryFindInsertionContext currentLine parsedInput partiallyQualifiedName insertionPoint
Parameters:
int
parsedInput : ParsedInput
partiallyQualifiedName : MaybeUnresolvedIdent[]
insertionPoint : OpenStatementInsertionPoint
Returns: ShortIdents option * ShortIdents option * ShortIdents option * ShortIdents -> (InsertionContextEntity * InsertionContext)[]
|
Returns `InsertContext` based on current position and symbol idents.
|
Full Usage:
TryGetCompletionContext (pos, parsedInput, lineStr)
Parameters:
pos
parsedInput : ParsedInput
lineStr : string
Returns: CompletionContext option
|
|