import{Ident as t}from"../../tokenizer/types.mjs";import"../../tokenizer/char-code-definitions.mjs";import"../../tokenizer/TokenStream.mjs";function e(){this.tokenType!==t&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}const i="TypeSelector",s={name:String};function o(){const t=this.tokenStart;return this.isDelim(124)?(this.next(),e.call(this)):(e.call(this),this.isDelim(124)&&(this.next(),e.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function n(t){this.tokenize(t.name)}export{n as generate,i as name,o as parse,s as structure};