scala.reflect.internal

TreeInfo

abstract class TreeInfo extends AnyRef

This class ...

Source
TreeInfo.scala
Version

1.0

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TreeInfo
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringfmt
  2. by any2stringadd
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TreeInfo()

Type Members

  1. class DynamicApplicationExtractor extends AnyRef

  2. abstract class SeeThroughBlocks[T] extends AnyRef

    Some handy extractors for spotting trees through the the haze of irrelevant braces: i.

Abstract Value Members

  1. abstract val global: SymbolTable

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from TreeInfo to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (TreeInfo, B)

    Implicit information
    This member is added by an implicit conversion from TreeInfo to ArrowAssoc[TreeInfo] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. object BoundTerm extends AnyRef

  9. object BoundType extends AnyRef

  10. object DynamicApplication extends DynamicApplicationExtractor

  11. object DynamicApplicationNamed extends DynamicApplicationExtractor

  12. object DynamicUpdate extends DynamicApplicationExtractor

  13. object EvalSplice extends AnyRef

  14. object FreeDef extends AnyRef

  15. object FreeRef extends AnyRef

  16. object FreeTermDef extends AnyRef

  17. object FreeTypeDef extends AnyRef

  18. object InlineableTreeSplice extends AnyRef

  19. object InlinedTreeSplice extends AnyRef

  20. object InlinedTypeSplice extends AnyRef

  21. object IsFalse extends SeeThroughBlocks[Boolean]

  22. object IsIf extends SeeThroughBlocks[Option[(Tree, Tree, Tree)]]

  23. object IsTrue extends SeeThroughBlocks[Boolean]

  24. object NestedExpr extends AnyRef

  25. object Reified extends AnyRef

  26. object ReifiedTree extends AnyRef

  27. object ReifiedType extends AnyRef

  28. object TreeSplice extends AnyRef

  29. object TypeRefToFreeType extends AnyRef

  30. object TypedOrAnnotated extends AnyRef

  31. object ValueSplice extends AnyRef

  32. def applyDepth(tree: Tree): Int

    The depth of the nested applies: e.

    The depth of the nested applies: e.g. Apply(Apply(Apply(_, _), _), _) has depth 3. Continues through type applications (without counting them.)

  33. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  34. def catchesAllOf(cdef: CaseDef, threshold: Type): Boolean

    Does this CaseDef catch everything of a certain Type?

  35. def catchesThrowable(cdef: CaseDef): Boolean

    Does this CaseDef catch Throwable?

  36. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. def ensuring(cond: (TreeInfo) ⇒ Boolean, msg: ⇒ Any): TreeInfo

    Implicit information
    This member is added by an implicit conversion from TreeInfo to Ensuring[TreeInfo] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  38. def ensuring(cond: (TreeInfo) ⇒ Boolean): TreeInfo

    Implicit information
    This member is added by an implicit conversion from TreeInfo to Ensuring[TreeInfo] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  39. def ensuring(cond: Boolean, msg: ⇒ Any): TreeInfo

    Implicit information
    This member is added by an implicit conversion from TreeInfo to Ensuring[TreeInfo] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  40. def ensuring(cond: Boolean): TreeInfo

    Implicit information
    This member is added by an implicit conversion from TreeInfo to Ensuring[TreeInfo] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  41. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  42. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  43. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  44. def firstArgument(tree: Tree): Tree

  45. def firstConstructor(stats: List[Tree]): Tree

    The first constructor definitions in stats

  46. def firstConstructorArgs(stats: List[Tree]): List[Tree]

    The arguments to the first constructor in stats.

  47. def firstDefinesClassOrObject(trees: List[Tree], name: Name): Boolean

    Does list of trees start with a definition of a class of module with given name (ignoring imports)

  48. def firstTypeArg(tree: Tree): Tree

    If this tree represents a type application (after unwrapping any applies) the first type argument.

    If this tree represents a type application (after unwrapping any applies) the first type argument. Otherwise, EmptyTree.

  49. def foreachMethodParamAndArg(t: Tree)(f: (Symbol, Tree) ⇒ Unit): Unit

  50. def foreachMethodParamAndArg(params: List[Symbol], args: List[Tree])(f: (Symbol, Tree) ⇒ Unit): Boolean

  51. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from TreeInfo to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  52. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  53. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  54. def isAbsTypeDef(tree: Tree): Boolean

  55. def isAliasTypeDef(tree: Tree): Boolean

  56. def isApplyDynamicName(name: Name): Boolean

  57. def isByNameParamType(tpt: Tree): Boolean

    Is tpt a by-name parameter type of the form => T?

  58. def isCatchCase(cdef: CaseDef): Boolean

    Is this pattern node a catch-all or type-test pattern?

  59. def isDeclarationOrTypeDef(tree: Tree): Boolean

    Is tree a declaration or type definition?

  60. def isDefaultCase(cdef: CaseDef): Boolean

    Is this pattern node a catch-all (wildcard or variable) pattern?

  61. def isEarlyDef(tree: Tree): Boolean

  62. def isEarlyTypeDef(tree: Tree): Boolean

  63. def isEarlyValDef(tree: Tree): Boolean

  64. def isExprSafeToInline(tree: Tree): Boolean

    Is tree an expression which can be inlined without affecting program semantics?

    Is tree an expression which can be inlined without affecting program semantics?

    Note that this is not called "isExprSafeToInline" since purity (lack of side-effects) is not the litmus test. References to modules and lazy vals are side-effecting, both because side-effecting code may be executed and because the first reference takes a different code path than all to follow; but they are safe to inline because the expression result from evaluating them is always the same.

  65. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  66. def isInterfaceMember(tree: Tree): Boolean

    Is tree legal as a member definition of an interface?

  67. def isLeftAssoc(operator: Name): Boolean

    Is name a left-associative operator?

  68. def isPureDef(tree: Tree): Boolean

    Is tree a pure (i.

    Is tree a pure (i.e. non-side-effecting) definition?

  69. def isRepeatedParamType(tpt: Tree): Boolean

    Is tpt a vararg type of the form T* ?

  70. def isSelf(tree: Tree, enclClass: Symbol): Boolean

    Is tree a this node which belongs to enclClass?

  71. def isSelfConstrCall(tree: Tree): Boolean

    Is tree a self constructor call this(.

    Is tree a self constructor call this(...)? I.e. a call to a constructor of the same object?

  72. def isSelfOrSuperConstrCall(tree: Tree): Boolean

    Is tree a self or super constructor call?

  73. def isSequenceValued(tree: Tree): Boolean

    Is this pattern node a sequence-valued pattern?

  74. def isStar(x: Tree): Boolean

    Is this tree a Star(_) after removing bindings?

  75. def isSuperConstrCall(tree: Tree): Boolean

    Is tree a super constructor call?

  76. def isVarPattern(pat: Tree): Boolean

    Is tree a variable pattern?

  77. def isVariableName(name: Name): Boolean

    Is name a variable name?

  78. def isVariableOrGetter(tree: Tree): Boolean

    Is tree a mutable variable, or the getter of a mutable field?

  79. def isVariablePattern(tree: Tree): Boolean

    Is this tree comprised of nothing but identifiers, but possibly in bindings or tuples? For instance

    Is this tree comprised of nothing but identifiers, but possibly in bindings or tuples? For instance

    foo @ (bar, (baz, quux))

    is a variable pattern; if the structure matches, then the remainder is inevitable.

  80. def isWildcardArg(tree: Tree): Boolean

    Is the argument a wildcard argument of the form _ or x @ _?

  81. def isWildcardStarArg(tree: Tree): Boolean

    Is this argument node of the form <expr> : _* ?

  82. def isWildcardStarArgList(trees: List[Tree]): Boolean

    Does this argument list end with an argument of the form <expr> : _* ?

  83. def mapMethodParamsAndArgs[R](params: List[Symbol], args: List[Tree])(f: (Symbol, Tree) ⇒ R): List[R]

  84. def mayBeTypePat(tree: Tree): Boolean

    can this type be a type pattern

  85. def mayBeVarGetter(sym: Symbol): Boolean

    Is symbol potentially a getter of a variable?

  86. def methPart(tree: Tree): Tree

    The method part of an application node

  87. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  88. def noPredefImportForUnit(body: Tree): Boolean

    Is this file the body of a compilation unit which should not have Predef imported?

  89. final def notify(): Unit

    Definition Classes
    AnyRef
  90. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  91. def preSuperFields(stats: List[Tree]): List[ValDef]

    The value definitions marked PRESUPER in this statement sequence

  92. def repeatedParams(tree: Tree): List[ValDef]

    The parameter ValDefs of a method definition that have vararg types of the form T*

  93. val self: Any

    Implicit information
    This member is added by an implicit conversion from TreeInfo to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  94. val self: Any

    Implicit information
    This member is added by an implicit conversion from TreeInfo to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  95. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  96. def toString(): String

    Definition Classes
    AnyRef → Any
  97. def typeParameters(tree: Tree): List[TypeDef]

    If this tree has type parameters, those.

    If this tree has type parameters, those. Otherwise Nil.

  98. def unbind(x: Tree): Tree

    The underlying pattern ignoring any bindings

  99. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  100. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  101. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  102. def zipMethodParamsAndArgs(t: Tree): List[(Symbol, Tree)]

  103. def zipMethodParamsAndArgs(params: List[Symbol], args: List[Tree]): List[(Symbol, Tree)]

  104. def [B](y: B): (TreeInfo, B)

    Implicit information
    This member is added by an implicit conversion from TreeInfo to ArrowAssoc[TreeInfo] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def isPureExpr(tree: Tree): Boolean

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use isExprSafeToInline instead

  2. def x: TreeInfo

    Implicit information
    This member is added by an implicit conversion from TreeInfo to ArrowAssoc[TreeInfo] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  3. def x: TreeInfo

    Implicit information
    This member is added by an implicit conversion from TreeInfo to Ensuring[TreeInfo] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from TreeInfo to StringFormat

Inherited by implicit conversion any2stringadd from TreeInfo to StringAdd

Inherited by implicit conversion any2ArrowAssoc from TreeInfo to ArrowAssoc[TreeInfo]

Inherited by implicit conversion any2Ensuring from TreeInfo to Ensuring[TreeInfo]