createAnnotation(info, path, message) {
    const { Annotation } = this.namespace.elements;

    const annotation = new Annotation(message);
    annotation.classes.push(info.type);
    annotation.code = info.code;

    this.result.content.push(annotation);

    if (info.fragment) {
      origin(info.fragment, annotation, this);
    }

    if (path && this.ast) {
      this.createSourceMap(annotation, path, true);
    }

    return annotation;
  }
// Make a new annotation for the given path and message
Make a new annotation for the given path and message
Make a new annotation for the given path and message
createAnnotation(info, path, message) {
    const { Annotation } = this.namespace.elements;
    const annotation = new Annotation(message);
    annotation.classes.push(info.type);
    annotation.code = info.code;
    this.result.content.push(annotation);
    if (info.fragment) {
      origin(info.fragment, annotation, this);
    }
    if (path && this.ast) {
      this.createSourceMap(annotation, path, true);
    }
    return annotation;
  }
createAnnotation ( info , path , message ) { const { Annotation } = this . namespace . elements ; const annotation = new Annotation ( message ) ; annotation . classes . push ( info . type ) ; annotation . code = info . code ; this . result . content . push ( annotation ) ; if ( info . fragment ) { origin ( info . fragment , annotation , this ) ; } if ( path && this . ast ) { this . createSourceMap ( annotation , path , true ) ; } return annotation ; }
Make a new annotation for the given path and message
Make a new annotation for the given path and message