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

RangeExpression wrong line, column data

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      def rangeTest() {
          (1..10).a
      }
      
      

      Parsed RangeExpression (part of PropertyExpression): line = 2, column = 5, endLine = 2, endColumn = 12
      ---from line = 2, column = 6, endLine = 2, endColumn = 9
      ---to line = 2, column = 9, endLine = 2, endColumn = 13

      Coordinates for from and to are wrong and to even overlaps the RangeExpression.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                phejl Petr Hejl
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: