diff options
author | allisonhb <allisonhb@gmx.com> | 2016-12-07 21:45:30 -0500 |
---|---|---|
committer | allisonhb <allisonhb@gmx.com> | 2016-12-14 14:13:01 -0500 |
commit | fab1db5a3854ae737e1d749eb08be9baf41199f5 (patch) | |
tree | 9db8b4320157afbac06bfb3a832f3682e64bf625 /src/reflect/scala/reflect/internal/AnnotationInfos.scala | |
parent | 8badcadbe51f4a02e495f462f5f2666a24d79cb0 (diff) | |
download | scala-fab1db5a3854ae737e1d749eb08be9baf41199f5.tar.gz scala-fab1db5a3854ae737e1d749eb08be9baf41199f5.tar.bz2 scala-fab1db5a3854ae737e1d749eb08be9baf41199f5.zip |
SI-4700 Make infix notation default for symbolic types.
Add ability to disable this via the @showAsInfix annotation.
Diffstat (limited to 'src/reflect/scala/reflect/internal/AnnotationInfos.scala')
-rw-r--r-- | src/reflect/scala/reflect/internal/AnnotationInfos.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reflect/scala/reflect/internal/AnnotationInfos.scala b/src/reflect/scala/reflect/internal/AnnotationInfos.scala index cfde164754..14a8e053e9 100644 --- a/src/reflect/scala/reflect/internal/AnnotationInfos.scala +++ b/src/reflect/scala/reflect/internal/AnnotationInfos.scala @@ -316,8 +316,9 @@ trait AnnotationInfos extends api.Annotations { self: SymbolTable => /** Check whether any of the arguments mention a symbol */ def refsSymbol(sym: Symbol) = hasArgWhich(_.symbol == sym) - def stringArg(index: Int) = constantAtIndex(index) map (_.stringValue) - def intArg(index: Int) = constantAtIndex(index) map (_.intValue) + def stringArg(index: Int) = constantAtIndex(index) map (_.stringValue) + def intArg(index: Int) = constantAtIndex(index) map (_.intValue) + def booleanArg(index: Int) = constantAtIndex(index) map (_.booleanValue) def symbolArg(index: Int) = argAtIndex(index) collect { case Apply(fun, Literal(str) :: Nil) if fun.symbol == definitions.Symbol_apply => newTermName(str.stringValue) |