import{Comment as t}from"../../tokenizer/types.mjs";import"../../tokenizer/char-code-definitions.mjs";import"../../tokenizer/TokenStream.mjs";const e="Comment",o={value:String};function i(){const e=this.tokenStart;let o=this.tokenEnd;return this.eat(t),o-e+2>=2&&42===this.charCodeAt(o-2)&&47===this.charCodeAt(o-1)&&(o-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,o)}}function n(e){this.token(t,"/*"+e.value+"*/")}export{n as generate,e as name,i as parse,o as structure};