From f6ab6622aab00fe7c2f4c3dc41f786ebbe0f0d73 Mon Sep 17 00:00:00 2001 From: Rogan Creswick Date: Fri, 30 Mar 2012 17:07:02 -0700 Subject: initial revision --- tools/jsdoc-toolkit-2.4.0/app/lib/JSDOC/Token.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tools/jsdoc-toolkit-2.4.0/app/lib/JSDOC/Token.js (limited to 'tools/jsdoc-toolkit-2.4.0/app/lib/JSDOC/Token.js') diff --git a/tools/jsdoc-toolkit-2.4.0/app/lib/JSDOC/Token.js b/tools/jsdoc-toolkit-2.4.0/app/lib/JSDOC/Token.js new file mode 100644 index 0000000..fb7f9d9 --- /dev/null +++ b/tools/jsdoc-toolkit-2.4.0/app/lib/JSDOC/Token.js @@ -0,0 +1,18 @@ +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+""; +} + +JSDOC.Token.prototype.is = function(what) { + return this.name === what || this.type === what; +} \ No newline at end of file -- cgit v1.2.3