abstract class JS::Code

Defined in:

js/code.cr

Constant Summary

JS_ALIASES = {} of String => String
OPERATOR_CALL_NAMES = ["+", "-", "*", "/", "**", "^", "//", "&", "|", "&&", "||", ">", ">=", "<", "<=", "==", "!=", "%"] of ::String
OPERATOR_PRECEDENCE = {"||" => 1, "&&" => 2, "|" => 3, "^" => 4, "&" => 5, ">" => 6, ">=" => 6, "<" => 6, "<=" => 6, "==" => 6, "!=" => 6, "+" => 7, "-" => 7, "*" => 8, "/" => 8, "//" => 8, "%" => 8, "**" => 9}
VARIABLE_DECLARATION_CALL_NAMES = ["let", "const"] of ::String

Macro Summary

Class methods inherited from class Object

to_js_ref to_js_ref

Macro Detail

macro _eval_js_block(io, namespace, opts, &blk) #

[View source]
macro def_to_js(strict = false, &blk) #

[View source]
macro js_alias(name, aliased_name) #

[View source]