groovy
  1. groovy
  2. GROOVY-3431

New setters for Statement subclasses

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7-beta-1
    • Fix Version/s: 1.6.1, 1.5.8, 1.7-beta-1
    • Component/s: Compiler
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The following setters should be added:

      • ForStatement.setLoopBlock()
      • WhileStatement.setLoopBlock()
      • DoWhileStatement.setLoopBlock()
      • TryCatchStatement.setFinallyStatement()
      • CaseStatement.setCode()

      This will make it much easier for AST transformations to replace individual statements.

        Activity

        Hide
        blackdrag blackdrag added a comment -

        I think this change can go into 1.5.x and 1.6.x as well

        Show
        blackdrag blackdrag added a comment - I think this change can go into 1.5.x and 1.6.x as well

          People

          • Assignee:
            Peter Niederwieser
            Reporter:
            Peter Niederwieser
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: