Sha256: 2e252c113397cd438d30994f7c33ab77483e008748d29e69d68f6c0fc52d54f7

Contents?: true

Size: 550 Bytes

Versions: 3

Compression:

Stored size: 550 Bytes

Contents

use :node;

var Node = module.require('../Node').Node;

fn UpdateExpression(argument, operator, prefix)
  extends Node {
  
  this.type = 'UpdateExpression';
  this.operator = operator;
  this.prefix = prefix;
  
  this.argument = argument;
  this.argument.parent = this;
}

UpdateExpression.prototype.codegen = () -> {
  if !super.codegen() {
    return;
  }
  
  return this;
};

UpdateExpression.prototype.hasCallExpression = () -> {
  return this.argument != null && this.left.hasCallExpression();
};

exports.UpdateExpression = UpdateExpression;

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spider-src-0.1.7 lib/spider-src/support/spider/src/ast/expressions/UpdateExpression.spider
spider-src-0.1.6 lib/spider-src/support/spider/src/ast/expressions/UpdateExpression.spider
spider-src-0.1.5 lib/spider-src/support/spider/src/ast/expressions/UpdateExpression.spider