import { isAstNodeWithComment as r } from "../serializer/json-serializer.js";
import { findCommentNode as o } from "../utils/cst-utils.js";
class a {
  constructor(m) {
    this.grammarConfig = () => m.parser.GrammarConfig;
  }
  getComment(m) {
    var t;
    return r(m) ? m.$comment : (t = o(m.$cstNode, this.grammarConfig().multilineCommentRules)) === null || t === void 0 ? void 0 : t.text;
  }
}
export {
  a as DefaultCommentProvider
};
