diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-08-27 18:08:19 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-08-27 20:21:46 +0200 |
commit | 23cf705ba64641a3ba45e84984702cf97cdd0ccf (patch) | |
tree | 1d8238b702ff0fca3d8377c8a9e00805e95d6525 /src/reflect/scala/reflect/api/Symbols.scala | |
parent | e81cafe1d444e2e2c7422c93f85f1e8382816a6a (diff) | |
download | scala-23cf705ba64641a3ba45e84984702cf97cdd0ccf.tar.gz scala-23cf705ba64641a3ba45e84984702cf97cdd0ccf.tar.bz2 scala-23cf705ba64641a3ba45e84984702cf97cdd0ccf.zip |
definitive way to learn if a symbol is a val/var
I think `isVal` and `isVar` are the right names, because they
exactly map on Scala syntax.
Diffstat (limited to 'src/reflect/scala/reflect/api/Symbols.scala')
-rw-r--r-- | src/reflect/scala/reflect/api/Symbols.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reflect/scala/reflect/api/Symbols.scala b/src/reflect/scala/reflect/api/Symbols.scala index 2673069eef..8617ae975d 100644 --- a/src/reflect/scala/reflect/api/Symbols.scala +++ b/src/reflect/scala/reflect/api/Symbols.scala @@ -212,16 +212,16 @@ trait Symbols extends base.Symbols { self: Universe => /** The API of term symbols */ trait TermSymbolApi extends SymbolApi with TermSymbolBase { this: TermSymbol => - /** Does this symbol represent a value, i.e. not a module and not a method? + /** Is this symbol introduced as `val`? */ - def isValue: Boolean + def isVal: Boolean /** Does this symbol denote a stable value? */ def isStable: Boolean - /** Does this symbol represent a mutable value? + /** Is this symbol introduced as `var`? */ - def isVariable: Boolean + def isVar: Boolean /** Does this symbol represent a getter or a setter? */ |