Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3082

ASTNode column data

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.5.7
    • parser
    • None

    Description

      It would be great to have documentation for org.codehaus.groovy.ast.ASTNode:

      getLineNumber()
      getColumnNumber()
      getLastLineNumber()
      getLastColumnNumber()

      In certain cases there seems to be a deviation from the right value (+1). However it is hard to say whether it is correct without doc. I guess it is not.
      Small sample:

         ["one","two"].listIter
      

      For "two" it gives: columnNumber=11, lastColumnNumber=16 (should it be 15?)
      For the list expression: columnNumber=4,lastColumnNumber=17(should it be 16?)

      Initial column numbers seem to be ok.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            blackdrag Jochen Theodorou
            phejl Petr Hejl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment