diff options
author | Paul Phillips <paulp@improving.org> | 2012-01-28 15:37:07 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-01-28 21:32:43 -0800 |
commit | d0c5ee4c031a126cee4c552a34cf732716568076 (patch) | |
tree | e626c0f056ef575979f986196d9c7212cb8783d3 /src/compiler/scala/reflect/internal/Symbols.scala | |
parent | 92a358aebae6336e4a2df54e5446f43efac71b21 (diff) | |
download | scala-d0c5ee4c031a126cee4c552a34cf732716568076.tar.gz scala-d0c5ee4c031a126cee4c552a34cf732716568076.tar.bz2 scala-d0c5ee4c031a126cee4c552a34cf732716568076.zip |
More method synthesis unification.
Diffstat (limited to 'src/compiler/scala/reflect/internal/Symbols.scala')
-rw-r--r-- | src/compiler/scala/reflect/internal/Symbols.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/compiler/scala/reflect/internal/Symbols.scala b/src/compiler/scala/reflect/internal/Symbols.scala index e3355345f0..b3df2b0498 100644 --- a/src/compiler/scala/reflect/internal/Symbols.scala +++ b/src/compiler/scala/reflect/internal/Symbols.scala @@ -1832,6 +1832,18 @@ trait Symbols extends api.Symbols { self: SymbolTable => } } + /** Remove any access boundary and clear flags PROTECTED | PRIVATE. + */ + def makePublic = this setPrivateWithin NoSymbol resetFlag AccessFlags + + /** The first parameter to the first argument list of this method, + * or NoSymbol if inapplicable. + */ + def firstParam = info.params match { + case p :: _ => p + case _ => NoSymbol + } + /** change name by appending $$<fully-qualified-name-of-class `base`> * Do the same for any accessed symbols or setters/getters */ |