groovy
  1. groovy
  2. GROOVY-5199

Expression#transformExpression should copy node metadata

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.4, 2.0-beta-1
    • Fix Version/s: 1.8.5, 2.0-beta-2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When an expression is transformed through Expression#transformExpression, we must make sure to copy node metadata, otherwise this information can be lost for further processing.

      It is important for static compilation which relies on node metadata computed by the static type checker. This inferrence information is lost after the OptimizerVisitor has transformed expressions.

        Activity

          People

          • Assignee:
            CÚdric Champeau
            Reporter:
            CÚdric Champeau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: