import{Delim as e,Dimension as t,Percentage as r,Number as s,Ident as o,Colon as i,Hash as a,LeftSquareBracket as c}from"../../tokenizer/types.mjs";import"../../tokenizer/char-code-definitions.mjs";import"../../tokenizer/TokenStream.mjs";const n={onWhiteSpace:function(e,t){null!==t.last&&"Combinator"!==t.last.type&&null!==e&&"Combinator"!==e.type&&t.push({type:"Combinator",loc:null,name:" "})},getNode:function(){switch(this.tokenType){case c:return this.AttributeSelector();case a:return this.IdSelector();case i:return this.lookupType(1)===i?this.PseudoElementSelector():this.PseudoClassSelector();case o:return this.TypeSelector();case s:case r:return this.Percentage();case t:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case e:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}break}}};export{n as default};