Refactor glimmer-printer (#7967)
* Refactor isVoid to a function
* Move isVoid to utils
* Refactor isVoid function
* Simplify a ternary
* Refactor ElementNode / MustacheStatement
* Rename a function
* Refactor blockstatement
* Extract two functions from ElementNode
* Remove useless filter
* Use helpers in TextNode
* Refactor SubExpression
* Refactor BlockStatement
* Fix cspell CI job
* Update src/language-handlebars/printer-glimmer.js
Co-Authored-By: fisker Cheung <lionkay@gmail.com>
* Fix linting in CI
Co-authored-by: fisker Cheung <lionkay@gmail.com>