[Tokenizer] move if context to methods allowing .write to be optimized
[Tokenizer] move if context to methods allowing .write to be optimized

broadly/htmlparser2,mail-apps/htmlparser2,magicode/htmlparser2,frontapp/htmlparser2,broadly/htmlparser2,jasonsanjose/htmlparser2,frontapp/htmlparser2,fasterize/node-htmlparser,magicode/htmlparser2,jasonsanjose/htmlparser2,kirbysayshi/node-htmlparser,mail-apps/htmlparser2