author | Lennard de Rijk <ljvderijk@gmail.com> |
Sun, 25 Oct 2009 18:45:58 -0700 | |
changeset 3052 | 6907a33ca0a2 |
parent 3041 | c8f47f0b6697 |
permissions | -rw-r--r-- |
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; }