scala.tools.nsc.ast

TreeInfo

abstract class TreeInfo extends TreeInfo

This class ...

Source
TreeInfo.scala
Version

1.0

Linear Supertypes
TreeInfo, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TreeInfo
  2. TreeInfo
  3. AnyRef
  4. 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: Global

    Definition Classes
    TreeInfoTreeInfo

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.)

    Definition Classes
    TreeInfo
  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?

    Does this CaseDef catch everything of a certain Type?

    Definition Classes
    TreeInfo
  35. def catchesThrowable(cdef: CaseDef): Boolean

    Does this CaseDef catch Throwable?

    Does this CaseDef catch Throwable?

    Definition Classes
    TreeInfo
  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

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

    The first constructor definitions in stats

    The first constructor definitions in stats

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

    The arguments to the first constructor in stats.

    The arguments to the first constructor in stats.

    Definition Classes
    TreeInfo
  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)

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

    Definition Classes
    TreeInfoTreeInfo
  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.

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

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

    Definition Classes
    TreeInfo
  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

    Definition Classes
    TreeInfo
  55. def isAliasTypeDef(tree: Tree): Boolean

    Definition Classes
    TreeInfo
  56. def isAllowedInUniversalTrait(stat: Tree): Boolean

  57. def isApplyDynamicName(name: Name): Boolean

    Definition Classes
    TreeInfo
  58. def isByNameParamType(tpt: Tree): Boolean

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

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

    Definition Classes
    TreeInfo
  59. def isCatchCase(cdef: CaseDef): Boolean

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

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

    Definition Classes
    TreeInfo
  60. def isDeclarationOrTypeDef(tree: Tree): Boolean

    Is tree a declaration or type definition?

    Is tree a declaration or type definition?

    Definition Classes
    TreeInfo
  61. def isDefaultCase(cdef: CaseDef): Boolean

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

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

    Definition Classes
    TreeInfo
  62. def isEarlyDef(tree: Tree): Boolean

    Definition Classes
    TreeInfo
  63. def isEarlyTypeDef(tree: Tree): Boolean

    Definition Classes
    TreeInfo
  64. def isEarlyValDef(tree: Tree): Boolean

    Definition Classes
    TreeInfo
  65. 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.

    Definition Classes
    TreeInfo
  66. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  67. def isInterface(mods: HasFlags, body: List[Tree]): Boolean

  68. def isInterfaceMember(tree: Tree): Boolean

    Is tree legal as a member definition of an interface?

    Is tree legal as a member definition of an interface?

    Definition Classes
    TreeInfoTreeInfo
  69. def isLeftAssoc(operator: Name): Boolean

    Is name a left-associative operator?

    Is name a left-associative operator?

    Definition Classes
    TreeInfo
  70. def isPureDef(tree: Tree): Boolean

    Is tree a pure (i.

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

    Definition Classes
    TreeInfoTreeInfo
  71. def isRepeatedParamType(tpt: Tree): Boolean

    Is tpt a vararg type of the form T* ?

    Is tpt a vararg type of the form T* ?

    Definition Classes
    TreeInfo
  72. def isSelf(tree: Tree, enclClass: Symbol): Boolean

    Is tree a this node which belongs to enclClass?

    Is tree a this node which belongs to enclClass?

    Definition Classes
    TreeInfo
  73. 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?

    Definition Classes
    TreeInfo
  74. def isSelfOrSuperConstrCall(tree: Tree): Boolean

    Is tree a self or super constructor call?

    Is tree a self or super constructor call?

    Definition Classes
    TreeInfo
  75. def isSequenceValued(tree: Tree): Boolean

    Is this pattern node a sequence-valued pattern?

    Is this pattern node a sequence-valued pattern?

    Definition Classes
    TreeInfo
  76. def isStar(x: Tree): Boolean

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

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

    Definition Classes
    TreeInfo
  77. def isSuperConstrCall(tree: Tree): Boolean

    Is tree a super constructor call?

    Is tree a super constructor call?

    Definition Classes
    TreeInfo
  78. def isVarPattern(pat: Tree): Boolean

    Is tree a variable pattern?

    Is tree a variable pattern?

    Definition Classes
    TreeInfo
  79. def isVariableName(name: Name): Boolean

    Is name a variable name?

    Is name a variable name?

    Definition Classes
    TreeInfo
  80. def isVariableOrGetter(tree: Tree): Boolean

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

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

    Definition Classes
    TreeInfo
  81. 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.

    Definition Classes
    TreeInfo
  82. def isWildcardArg(tree: Tree): Boolean

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

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

    Definition Classes
    TreeInfo
  83. def isWildcardStarArg(tree: Tree): Boolean

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

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

    Definition Classes
    TreeInfo
  84. def isWildcardStarArgList(trees: List[Tree]): Boolean

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

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

    Definition Classes
    TreeInfo
  85. def mapMethodParamsAndArgs[R](params: List[Symbol], args: List[Tree])(f: (Symbol, Tree) ⇒ R): List[R]

    Definition Classes
    TreeInfo
  86. def mayBeTypePat(tree: Tree): Boolean

    can this type be a type pattern

    can this type be a type pattern

    Definition Classes
    TreeInfo
  87. def mayBeVarGetter(sym: Symbol): Boolean

    Is symbol potentially a getter of a variable?

    Is symbol potentially a getter of a variable?

    Definition Classes
    TreeInfo
  88. def methPart(tree: Tree): Tree

    The method part of an application node

    The method part of an application node

    Definition Classes
    TreeInfo
  89. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    TreeInfo
  91. final def notify(): Unit

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

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

    The value definitions marked PRESUPER in this statement sequence

    The value definitions marked PRESUPER in this statement sequence

    Definition Classes
    TreeInfo
  94. def repeatedParams(tree: Tree): List[ValDef]

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

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

    Definition Classes
    TreeInfo
  95. 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
  96. 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
  97. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  98. def toString(): String

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

    If this tree has type parameters, those.

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

    Definition Classes
    TreeInfo
  100. def unbind(x: Tree): Tree

    The underlying pattern ignoring any bindings

    The underlying pattern ignoring any bindings

    Definition Classes
    TreeInfo
  101. final def wait(): Unit

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

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

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

    Definition Classes
    TreeInfo
  105. def zipMethodParamsAndArgs(params: List[Symbol], args: List[Tree]): List[(Symbol, Tree)]

    Definition Classes
    TreeInfo
  106. 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

    Definition Classes
    TreeInfo
    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 TreeInfo

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]