Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-6267

Flag-related functionality would use a cleanup

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.10.0, Scala 2.11.0
    • Fix Version/s: Backlog
    • Component/s: Reflection
    • Labels:
      None

      Description

      Arguably we need to get rid of flags in Modifiers (similarly to what've been done for Symbols).

      However, it'd also be great to support the following use case:

      def buildParams(methodType: Type) =
        paramss(methodType) map { params =>
          params map { p =>
            ValDef(
              Modifiers(p.flags),
              newTermName(p.name.toString),
              paramType(p.typeSignature),
              EmptyTree)
          }
        }
      

      Rather controversial requirements, but this only makes it more interesting.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                burmako Eugene Burmako
                Reporter:
                burmako Eugene Burmako
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: