Header menu logo fantomas

Trivia Module

Functions and values

Function or value Description

enrichTree config sourceText ast tree

Full Usage: enrichTree config sourceText ast tree

Parameters:
Returns: Oak
config : FormatConfig
sourceText : ISourceText
ast : ParsedInput
tree : Oak
Returns: Oak

findNodeWhereRangeFitsIn root range

Full Usage: findNodeWhereRangeFitsIn root range

Parameters:
Returns: Node option
root : Node
range : range
Returns: Node option

insertCursor tree cursor

Full Usage: insertCursor tree cursor

Parameters:
Returns: Oak

Try and insert a cursor position as Trivia inside the Oak The cursor could either be inside a Node or floating around one.

tree : Oak
cursor : pos
Returns: Oak

Type something to start searching.