Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[nomaster] removes Tree.canHaveAttrs

This forward compatibility fix is very easy. Have a new method in 2.10.1?
Don't expose it in the public API, and you won't have any problems.
  • Loading branch information...
commit 1093ce0b7c0d5e78dbd4cacc5c90cb264298afb0 1 parent 7bf0ecc
@xeno-by xeno-by authored
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/reflect/scala/reflect/api/Trees.scala
8 src/reflect/scala/reflect/api/Trees.scala
@@ -84,17 +84,9 @@ trait Trees { self: Universe =>
* Unfortunately `emptyValDef` is also considered to be `isEmpty`, but this is deemed to be
* a conceptual mistake pending a fix in
- *
- * @see `canHaveAttrs`
def isEmpty: Boolean
- /** Can this tree carry attributes (i.e. symbols, types or positions)?
- * Typically the answer is yes, except for the `EmptyTree` null object and
- * two special singletons: `emptyValDef` and `pendingSuperCall`.
- */
- def canHaveAttrs: Boolean
/** The canonical way to test if a Tree represents a term.
def isTerm: Boolean

1 comment on commit 1093ce0


Job pr-checkin-per-commit failed for 1093ce0 (results):

Took 87 s.
sad kitty

Please sign in to comment.
Something went wrong with that request. Please try again.