Child position on in span of parent position for enum constant with bodies

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: tools

      Consider code like:
      ---
      public enum E {
         A {
              int i;
          }
      }
      ---

      This is desugared in parser using anonymous class definition. But the span for the NewClassTree does not fully enclose the span of the embedded ClassTree - the NewClassTree begins at '{', but the embedded ClassTree beging at 'A'. A testcase is attached.

            Assignee:
            Jan Lahoda
            Reporter:
            Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: