Header menu logo F# Compiler Guide

ParsedInput Module

Operations querying the entire syntax tree

Functions and values

Function or value Description

AdjustInsertionPoint getLineStr ctx

Full Usage: AdjustInsertionPoint getLineStr ctx

Parameters:
Returns: pos

Corrects insertion line number based on kind of scope and text surrounding the insertion point.

getLineStr : int -> string
ctx : InsertionContext
Returns: pos

FindNearestPointToInsertOpenDeclaration currentLine parsedInput entity insertionPoint

Full Usage: FindNearestPointToInsertOpenDeclaration currentLine parsedInput entity insertionPoint

Parameters:
Returns: InsertionContext

Returns `InsertContext` based on current position and symbol idents.

currentLine : int
parsedInput : ParsedInput
entity : ShortIdents
insertionPoint : OpenStatementInsertionPoint
Returns: InsertionContext

GetEntityKind (pos, parsedInput)

Full Usage: GetEntityKind (pos, parsedInput)

Parameters:
Returns: EntityKind option
pos : pos
parsedInput : ParsedInput
Returns: EntityKind option

GetFullNameOfSmallestModuleOrNamespaceAtPoint (pos, parsedInput)

Full Usage: GetFullNameOfSmallestModuleOrNamespaceAtPoint (pos, parsedInput)

Parameters:
Returns: string[]
pos : pos
parsedInput : ParsedInput
Returns: string[]

GetLongIdentAt parsedInput pos

Full Usage: GetLongIdentAt parsedInput pos

Parameters:
Returns: LongIdent option

Returns long identifier at position.

parsedInput : ParsedInput
pos : pos
Returns: LongIdent option

GetRangeOfExprLeftOfDot (pos, parsedInput)

Full Usage: GetRangeOfExprLeftOfDot (pos, parsedInput)

Parameters:
Returns: range option
pos : pos
parsedInput : ParsedInput
Returns: range option

TryFindExpressionASTLeftOfDotLeftOfCursor (pos, parsedInput)

Full Usage: TryFindExpressionASTLeftOfDotLeftOfCursor (pos, parsedInput)

Parameters:
Returns: (pos * bool) option
pos : pos
parsedInput : ParsedInput
Returns: (pos * bool) option

TryFindExpressionIslandInPosition (pos, parsedInput)

Full Usage: TryFindExpressionIslandInPosition (pos, parsedInput)

Parameters:
Returns: string option
pos : pos
parsedInput : ParsedInput
Returns: string option

TryFindInsertionContext currentLine parsedInput partiallyQualifiedName insertionPoint

Full Usage: TryFindInsertionContext currentLine parsedInput partiallyQualifiedName insertionPoint

Parameters:
Returns: ShortIdents option * ShortIdents option * ShortIdents option * ShortIdents -> (InsertionContextEntity * InsertionContext)[]

Returns `InsertContext` based on current position and symbol idents.

currentLine : int
parsedInput : ParsedInput
partiallyQualifiedName : MaybeUnresolvedIdent[]
insertionPoint : OpenStatementInsertionPoint
Returns: ShortIdents option * ShortIdents option * ShortIdents option * ShortIdents -> (InsertionContextEntity * InsertionContext)[]

TryGetCompletionContext (pos, parsedInput, lineStr)

Full Usage: TryGetCompletionContext (pos, parsedInput, lineStr)

Parameters:
Returns: CompletionContext option
pos : pos
parsedInput : ParsedInput
lineStr : string
Returns: CompletionContext option

Type something to start searching.