object
TreeOps
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
-
-
-
-
final
def
asInfixApp(tree: Tree, flag: Boolean = true): Option[InfixApp]
-
final
def
asInfixApp(tree: Tree): Option[InfixApp]
-
final
def
asInstanceOf[T0]: T0
-
def
assertValidParens(open: Token, close: Token): Unit
-
def
childOf(tok: Token, tree: Tree, owners: Map[TokenHash, Tree]): Boolean
-
final
def
childOf(child: Tree, tree: Tree): Boolean
-
def
clone(): AnyRef
-
def
defBody(tree: Tree): Option[Tree]
-
def
defDefReturnType(tree: Tree): Option[Type]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
existsChild(f: (Tree) ⇒ Boolean)(tree: Tree): Boolean
-
def
existsParentOfType[A <: Tree](tree: Tree)(implicit classifier: Classifier[Tree, A]): Boolean
-
def
extractStatementsIfAny(tree: Tree): Seq[Tree]
-
def
finalize(): Unit
-
def
findFirstTreeBetween(tree: Tree, beg: Token, end: Token): Option[Tree]
-
def
findInterpolate(tree: Tree, res: Option[Interpolate] = None): Option[Interpolate]
-
def
findNextInfixInParent(tree: Tree, scope: Tree): Option[Name]
-
def
findSiblingGuard(generator: Generator): Option[Guard]
-
def
findTreeWithParent(tree: Tree)(pred: (Tree) ⇒ Option[Boolean]): Option[Tree]
-
def
findTreeWithParentOfType[A <: Tree](tree: Tree)(implicit classifier: Classifier[Tree, A]): Option[Tree]
-
def
findTreeWithParentSimple(tree: Tree)(pred: (Tree) ⇒ Boolean): Option[Tree]
-
def
getAssignAtSingleArgCallSite(tree: Tree): Option[Assign]
-
def
getBlockSingleStat(b: Block): Option[Stat]
-
final
def
getClass(): Class[_]
-
def
getDequeueSpots(tree: Tree): Set[TokenHash]
-
def
getEnumStatements(enums: Seq[Enumerator]): Seq[Enumerator]
-
def
getMatchingParentheses(tokens: Tokens): Map[TokenHash, Token]
-
def
getOwners(tree: Tree): Map[TokenHash, Tree]
-
final
def
getSelectChain(child: Tree, accum: Vector[Select]): Vector[Select]
-
def
getStatementStarts(tree: Tree): Map[TokenHash, Tree]
-
def
getStripMarginChar(ft: FormatToken): Option[Char]
-
def
getStripMarginChar(t: Tree): Option[Char]
-
def
getTermLineSpan(b: Tree): Int
-
def
getTermSingleStat(t: Term): Option[Tree]
-
def
hasExplicitImplicit(param: Param): Boolean
-
def
hashCode(): Int
-
def
infixSequenceLength(app: InfixApp): Int
-
def
isBlockFunction(fun: Function): Boolean
-
def
isCallSite(tree: Tree)(implicit style: ScalafmtConfig): Boolean
-
def
isChainApplyParent(parent: Tree, child: Tree): Boolean
-
def
isChildOfCaseClause(tree: Tree): Boolean
-
def
isDefDef(tree: Tree): Boolean
-
def
isDefnOrCallSite(tree: Tree)(implicit style: ScalafmtConfig): Boolean
-
def
isDefnSite(tree: Tree): Boolean
-
def
isDefnSiteWithParams(tree: Tree): Boolean
-
def
isExplicitImplicit(m: Mod): Boolean
-
def
isFirstOrLastToken(token: Token, owner: Tree): Boolean
-
def
isFunctionWithBraces(fun: Function): Boolean
-
def
isHiddenImplicit(m: Mod): Boolean
-
final
def
isInfixApp(tree: Tree): Boolean
-
final
def
isInfixOp(tree: Tree): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
isModPrivateProtected(tree: Tree): Boolean
-
def
isProcedureSyntax(defn: Def): Boolean
-
def
isSingleElement(elements: List[Tree], value: Tree): Boolean
-
def
isSuperfluousParenthesis(open: LeftParen, owner: Tree): Boolean
-
def
isSuperfluousParenthesis(open: Token, owner: Tree): Boolean
-
def
isTopLevel(tree: Tree): Boolean
-
final
def
isTopLevelInfixApplication(child: Tree): Boolean
-
def
isTripleQuote(token: Token): Boolean
-
def
isTuple(tree: Tree): Boolean
-
def
isTypeVariant(tree: Tree): Boolean
-
def
isXmlBrace(owner: Tree): Boolean
-
final
def
lastLambda(first: Function): Function
-
final
def
ne(arg0: AnyRef): Boolean
-
def
nestedApplies(tree: Tree): Int
-
def
nestedSelect(tree: Tree): Int
-
def
noSpaceBeforeOpeningParen(tree: Tree)(implicit style: ScalafmtConfig): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
numParents(tree: Tree, cnt: Int = 0)(f: (Tree) ⇒ Boolean): Int
-
def
shouldNotDangleAtDefnSite(tree: Tree, isVerticalMultiline: Boolean)(implicit style: ScalafmtConfig): Boolean
-
val
splitCallIntoParts: PartialFunction[Tree, CallParts]
-
val
splitDefnIntoParts: PartialFunction[Tree, DefnParts]
-
def
startsSelectChain(tree: Tree): Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
topTypeWith(typeWith: With): With
-
def
treeDepth(tree: Tree): Int
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
withChain(top: Tree): Seq[With]
Stateless helper functions on
scala.meta.Tree
.