code: public void addError(String text, CSTNode context, SourceUnit source) throws CompilationFailedException {
          addError(new LocatedMessage(text, context, source));
      }
docs: Convenience wrapper for addError().