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

GroovyConsole AST Viewer does not display the accessedVariable property of Variable nodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7-beta-1
    • 1.7-beta-1
    • Groovy Console
    • None
    • WinXP, Groovy Head

    Description

      VariableExpression nodes have a field called accessedVariable. The field is of type ASTNode.

      The GroovyConsole ASTViewer does not display this field in the tree pane, you can only see the toString form of the field in the table.

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

      foo = ""

      Which creates a DynamicVariable in the VariableExpression's accessedVariable field.

      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