Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.5
-
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.