Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8324789

Add line number information to code models

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • repo-babylon
    • core-libs

      The meta-code model does not currently support line number information, which could be inserted by the source compiler into the model it is building.

      Line number information could then be propagated if needed to say bytecode or other forms.

      Each operation should have the capability to state what line and column (or range?) of a source file it originated from. But, it should not be required, and ideally such a requirement should result in duplication of operation factories.

      It may be possible to support using a ScopedLocal value which in effect acts as an implicit method parameter. The source compiler would build a code model with a line number value in scope. When an operation is constructed it can check if the line number value is in scope and act accordingly.
       

            psandoz Paul Sandoz
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: