final object NavigateAST

Utility functions to go from typed to untyped ASTs

Constructors

Members

[+] def pathTo ( pos: Position , from: Positioned ) ( implicit ctx: Context ) : List [ Positioned ]

The reverse path from node from to the node that closest encloses position pos, or Nil if no such path exists. If a non-empty path is returned it start...

The reverse path from node from to the node that closest encloses position pos, or Nil if no such path exists. If a non-empty path is returned it starts with the node closest enclosing pos and ends with from.

def toUntyped ( tree: Tree ) ( implicit ctx: Context ) : Tree

The untyped tree corresponding to typed tree tree in the compilation unit specified by ctx

The untyped tree corresponding to typed tree tree in the compilation unit specified by ctx

[+] def untypedPath ( tree: Tree , exactMatch: Boolean ) ( implicit ctx: Context ) : List [ Positioned ]

The reverse path of untyped trees starting with a tree that closest matches tree and ending in the untyped tree at the root of the compilation unit spec...

The reverse path of untyped trees starting with a tree that closest matches tree and ending in the untyped tree at the root of the compilation unit specified by ctx.

def untypedPath ( pos: Position ) ( implicit ctx: Context ) : List [ Positioned ]

The reverse part of the untyped root of the compilation unit of ctx to position pos.

The reverse part of the untyped root of the compilation unit of ctx to position pos.

[+] def untypedPath$default$2 : Boolean

The reverse path of untyped trees starting with a tree that closest matches tree and ending in the untyped tree at the root of the compilation unit spec...

The reverse path of untyped trees starting with a tree that closest matches tree and ending in the untyped tree at the root of the compilation unit specified by ctx.