NodeOps

slick.ast.NodeOps
final class NodeOps(val tree: Node) extends AnyVal

Extra methods for Nodes.

Attributes

Source:
Util.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def collect[T](pf: PartialFunction[Node, T], stopOnMatch: Boolean): ConstArray[T]

Attributes

Source:
Util.scala
def collectAll[T](pf: PartialFunction[Node, ConstArray[T]]): ConstArray[T]

Attributes

Source:
Util.scala
def findNode(p: Node => Boolean): Option[Node]

Attributes

Source:
Util.scala
def replace(f: PartialFunction[Node, Node], keepType: Boolean, bottomUp: Boolean): Node

Attributes

Source:
Util.scala
def replaceInvalidate(f: PartialFunction[Node, (Node, TypeSymbol)]): Node

Replace nodes in a bottom-up traversal while invalidating TypeSymbols. Any later references to the invalidated TypeSymbols have their types unassigned, so that the whole tree can be retyped afterwards to get the correct new TypeSymbols in. The PartialFunction may return null, which is considered the same as not matching.

Replace nodes in a bottom-up traversal while invalidating TypeSymbols. Any later references to the invalidated TypeSymbols have their types unassigned, so that the whole tree can be retyped afterwards to get the correct new TypeSymbols in. The PartialFunction may return null, which is considered the same as not matching.

Attributes

Source:
Util.scala
def select(field: TermSymbol): Node

Attributes

Source:
Util.scala
def untypeReferences(invalid: Set[TypeSymbol]): Node

Attributes

Source:
Util.scala

Concrete fields

val tree: Node

Attributes

Source:
Util.scala