Sha256: b612fe09da72ee8e7de1a759da08747502a6da8396f35eadba236d6738f388d1

Contents?: true

Size: 400 Bytes

Versions: 10

Compression:

Stored size: 400 Bytes

Contents

if (typeof JSDOC == "undefined") JSDOC = {};

/**
  @constructor
*/
JSDOC.Token = function(data, type, name) {
  this.data = data;
  this.type = type;
  this.name = name;
}

JSDOC.Token.prototype.toString = function() { 
  return "<"+this.type+" name=\""+this.name+"\">"+this.data+"</"+this.type+">";
}

JSDOC.Token.prototype.is = function(what) {
  return this.name === what || this.type === what;
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sproutcore-0.9.15 jsdoc/app/lib/JSDOC/Token.js
sproutcore-0.9.14 jsdoc/app/lib/JSDOC/Token.js
sproutcore-0.9.18 jsdoc/app/lib/JSDOC/Token.js
sproutcore-0.9.16 jsdoc/app/lib/JSDOC/Token.js
sproutcore-0.9.17 jsdoc/app/lib/JSDOC/Token.js
sproutcore-0.9.19 jsdoc/app/lib/JSDOC/Token.js
sproutcore-0.9.20 jsdoc/app/lib/JSDOC/Token.js
sproutcore-0.9.21 jsdoc/app/lib/JSDOC/Token.js
sproutcore-0.9.22 jsdoc/app/lib/JSDOC/Token.js
sproutcore-0.9.23 jsdoc/app/lib/JSDOC/Token.js