scala.tools.nsc.ast

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. Hide All
  2. Show all
  1. TreeInfo
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TreeInfo()

Type Members

  1. 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 trees: 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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. object IsFalse extends SeeThroughBlocks[Boolean]

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

  8. object IsTrue extends SeeThroughBlocks[Boolean]

  9. final def asInstanceOf[T0]: T0

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

    Does this CaseDef catch everything of a certain Type?

  11. def catchesThrowable(cdef: CaseDef): Boolean

    Does this CaseDef catch Throwable?

  12. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def containsLeadingPredefImport(defs: List[Tree]): Boolean

    Top-level definition sequence contains a leading import of Predef or scala.Predef.

  14. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    The first constructor definitions in stats'

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

    The arguments to the first constructor in stats'.

  20. final def getClass(): java.lang.Class[_]

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

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

  23. def isAliasTypeDef(tree: Tree): Boolean

  24. def isByNameParamType(tpt: Tree): Boolean

    Is tpt a by-name parameter type?

  25. def isCatchCase(cdef: CaseDef): Boolean

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

  26. def isDeclaration(tree: Tree): Boolean

  27. def isDefaultCase(cdef: CaseDef): Boolean

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

  28. def isDefinition(tree: Tree): Boolean

  29. def isEarlyDef(tree: Tree): Boolean

  30. def isEarlyTypeDef(tree: Tree): Boolean

  31. def isEarlyValDef(tree: Tree): Boolean

  32. final def isInstanceOf[T0]: Boolean

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

    Is tree legal as a member definition of an interface?

  34. def isLeftAssoc(operator: Name): Boolean

    Is name a left-associative operator?

  35. def isOwnerDefinition(tree: Tree): Boolean

  36. def isPureDef(tree: Tree): Boolean

    Is tree a pure (i.

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

  37. def isPureExpr(tree: Tree): Boolean

    Is tree a stable and pure expression?

  38. def isRepeatedParamType(tpt: Tree): Boolean

    Is tpt of the form T* ?

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

    Is tree a this node which belongs to enclClass'?

  40. def isSelfConstrCall(tree: Tree): Boolean

    Is tree a self constructor call?

  41. def isSelfOrSuperConstrCall(tree: Tree): Boolean

  42. def isSequenceValued(tree: Tree): Boolean

    Is this pattern node a sequence-valued pattern?

  43. def isStar(x: Tree): Boolean

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

  44. def isSuperConstrCall(tree: Tree): Boolean

  45. def isUnitInScala(tree: Tree, name: Name): Boolean

    Compilation unit is class or object 'name' in package 'scala'

  46. def isVarPattern(pat: Tree): Boolean

    Is tree a variable pattern

  47. def isVariableName(name: Name): Boolean

    Is name a variable name?

  48. def isVariableOrGetter(tree: Tree): Boolean

  49. def isWildcardArg(tree: Tree): Boolean

    Is the argument a (possibly bound) _ arg?

  50. def isWildcardStarArg(tree: Tree): Boolean

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

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

  52. def mayBeTypePat(tree: Tree): Boolean

    can this type be a type pattern

  53. def mayBeVarGetter(sym: Symbol): Boolean

  54. def methPart(tree: Tree): Tree

    The method part of an application node

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

    Definition Classes
    AnyRef
  56. final def notify(): Unit

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

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

    The value definitions marked PRESUPER in this statement sequence

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

    The parameter ValDefs from a def of the form T*.

  60. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  61. def toString(): String

    Definition Classes
    AnyRef → Any
  62. def unbind(x: Tree): Tree

    The underlying pattern ignoring any bindings

  63. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any