Method: XRay::JS::Expr::Primary#parse_expr_identifier
- Defined in:
- lib/js/expr/primary.rb
#parse_expr_identifier ⇒ Object
104 105 106 107 108 109 110 111 112 |
# File 'lib/js/expr/primary.rb', line 104 def parse_expr_identifier log 'parse expr identifier' id = scan(R_IDENTIFY) RESERVED_WORDS.include?(id.text) ? parse_error("identifier can not be reserved word: #{id}") : id create_expression 'id', id end |