Compact declaration of inner classes

Issue #207 new
Jon Sten created an issue

It would be useful to be able to declare inner classes on a compact "dotted" form. I.e.

public class A {
  public static class B {
  }
}

Could be written as:

public static class A.B {
}

Comments (2)

  1. Jesper Öqvist

    I have looked at the JastAdd parser to see if this would be easy to add, but unfortunately the feature seems quite difficult to add in the current parser so I don't think we will be implementing this feature anytime soon.

    Initially it seemed like we could add this simply by reusing the UnmodifiedClassDeclaration production in AspectClassDeclaration to parse an inter-type class declaration, but this does not work for reasons I do not know at the moment.

  2. Jon Sten reporter

    Ok, that was unfortunate. I guess we keep it at the list of future features :) Thanks for looking into it.

  3. Log in to comment