sbin/res/jsdoc/app/lib/JSDOC/Token.js
changeset 1072 ac1eacb3aa33
parent 1071 02c04d2c8fd8
child 1073 687133dc13cf
equal deleted inserted replaced
1071:02c04d2c8fd8 1072:ac1eacb3aa33
     1 if (typeof JSDOC == "undefined") JSDOC = {};
       
     2 
       
     3 /**
       
     4 	@constructor
       
     5 */
       
     6 JSDOC.Token = function(data, type, name) {
       
     7 	this.data = data;
       
     8 	this.type = type;
       
     9 	this.name = name;
       
    10 }
       
    11 
       
    12 JSDOC.Token.prototype.toString = function() { 
       
    13 	return "<"+this.type+" name=\""+this.name+"\">"+this.data+"</"+this.type+">";
       
    14 }
       
    15 
       
    16 JSDOC.Token.prototype.is = function(what) {
       
    17 	return this.name === what || this.type === what;
       
    18 }