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

Expression#transformExpression should copy node metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.4, 2.0-beta-1
    • 1.8.5, 2.0-beta-2
    • None
    • None

    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.

      Attachments

        Activity

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: