Compact declaration of inner classes
Issue #207
new
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)
-
-
reporter Ok, that was unfortunate. I guess we keep it at the list of future features :) Thanks for looking into it.
- Log in to comment
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 inAspectClassDeclaration
to parse an inter-type class declaration, but this does not work for reasons I do not know at the moment.