Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
appendBlock(node: hbs.BlockStatement): void {
switch (this.htmlParser.tokenizer.state) {
case TokenizerState.attributeValueSingleQuoted:
case TokenizerState.attributeValueDoubleQuoted:
case TokenizerState.beforeAttributeValue: {
throw new Error(`Can't append a block to an attribute`);
}
default:
this.parent.appendNode(node);
}
}