1 /** 2 * @fileoverview Class represents the end-tag token. 3 */ 4 5 goog.provide('xrx.token.EndTag'); 6 7 8 9 goog.require('xrx.token'); 10 11 12 13 /** 14 * Constructs a new end tag token. 15 * @constructor 16 * @extends xrx.token 17 */ 18 xrx.token.EndTag = function(label, opt_offset, opt_length) { 19 goog.base(this, xrx.token.END_TAG, label, opt_offset, opt_length); 20 }; 21 goog.inherits(xrx.token.EndTag, xrx.token); 22 23 24 25 /** 26 * Compares the generic type of two tokens. 27 * 28 * @param {!number} type The type to check against. 29 * @return {!boolean} 30 */ 31 xrx.token.EndTag.prototype.typeOf = function(type) { 32 return this.type_ === type || xrx.token.TAG === type; 33 };