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

ability to add warnings from AST transformations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.5
    • 4.0.7
    • None
    • None

    Description

      AbstractASTTransformation has a convenience method addError to attach an error to a particular node, such as an offending field, but it does not have a corresponding method to attach a warning. In examining the addWarning methods on ErrorCollector, it seems that WarningMessage makes the assumption that warnings can only happen on CST nodes; I couldn't find any way to register a warning that didn't have a CST location attached.

      I am trying to add a semantic warning if a transformation is asked to add a property that is explicitly declared but exactly matches the one that would be generated.

      Attachments

        Activity

          People

            emilles Eric Milles
            chrylis Christopher Smith
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: