api

convert.ch

Declarations in convert.ch

4 declarationsjs_parser

Declarations

Public only
escape_append_hex#
Publicfunction
func escape_append_hex(emitter : &JsNodeEmitter, val : uint) : void
Shared JS AST -> JS text conversion. This is the common conversion logic that walks a parsed JsRoot (or a single JsNode) and produces JS source text. It is shared between: - the compiler plugin (js_cbi) which implements JsNodeEmitter by emitting `page.append_js(...)` calls into the chemical AST, and - the runtime package (js) which implements JsNodeEmitter by appending text into a std::string.
escape_js_text#
Publicfunction
func escape_js_text(text : string_view, emitter : &JsNodeEmitter) : void
convert_js_node#
Publicfunction
func convert_js_node(node : *JsNode, emitter : &JsNodeEmitter, universal_mode : bool) : void
convert_js_root#
Publicfunction
func convert_js_root(root : *JsRoot, emitter : &JsNodeEmitter) : void