class BestFirstSearch extends AnyRef
Implements best first search to find optimal formatting.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BestFirstSearch
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new BestFirstSearch(formatOps: FormatOps, range: Set[Range], formatWriter: FormatWriter)
Type Members
- type StateHash = Long
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val best: Map[Token, State]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- var deepestYet: State
- var deepestYetSafe: State
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- var explored: Int
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val formatOps: FormatOps
- def getBestPath: SearchResult
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getLeftLeft(curr: State): Token
- def hasReachedEof(state: State): Boolean
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isInsideNoOptZone(token: FormatToken): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val memo: Map[(Int, StateHash), State]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val noOptimizations: Set[Token]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- var pathologicalEscapes: Int
- def provided(formatToken: FormatToken): Split
- val routes: Array[Seq[Split]]
Precomputed table of splits for each token.
- def shortestPath(start: State, stop: Token, depth: Int = 0, maxCost: Int = Integer.MAX_VALUE): State
Runs best first search to find lowest penalty split.
- def shortestPathMemo(start: State, stop: Token, depth: Int, maxCost: Int)(implicit line: Line): State
- def shouldEnterState(curr: State): Boolean
Returns true if it's OK to skip over state.
- def shouldRecurseOnBlock(curr: State, stop: Token): Boolean
- def stateColumnKey(state: State): StateHash
- var statementCount: Int
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def untilNextStatement(state: State, maxDepth: Int): State
- val visits: Map[FormatToken, Int]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()