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

GroovyConsole AST Viewer does not display NamedArgumentListExpression nodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.3
    • 1.7-beta-1
    • Groovy Console
    • None
    • winxp groovy trunk

    Description

      NamedArgumentListExpression do not display in the AST Viewer of the groovy console.

      You can reproduce this by viewing the ast for this script:

      new String(foo: 'bar')

      The ConstructorCallExpression#arguments field is a TupleExpression.
      The TupleExpression#expressions field is a NamedArgumentListExpression
      However, the tree pane collapses the NamedArgumentListExpression and all you see is the MapEntry objects underneath. You only see the NamedArgumentListExpression in the table view never the tree view.

      A junit test case should be simple to create.

      Attachments

        Activity

          People

            hamletdrc Hamlet D'Arcy
            hamletdrc Hamlet D'Arcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified