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

Wrong line/col info for MapEntryExpressions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.6.0-alpha-1
    • parser-antlr2
    • None

    Description

      Whenever there's a map entry, a named parameter, etc, a MapEntryExpression is used, but the line / col of MapEntryExpression is just surrounding the column, instead of the whole key + colon + value.

      Another problem with MEE is that the value goes up to the next comma or closing square bracket (including all potential whitespace), instead of just stopping at the end of the expression or constant.

      Attachments

        Issue Links

          Activity

            People

              daniel_sun Daniel Sun
              guillaume Guillaume Sauthier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: