61 lines
803 B
JavaScript
61 lines
803 B
JavaScript
|
/**
|
||
|
*
|
||
|
* @class type
|
||
|
* @extends v2.base
|
||
|
* @memberof v2
|
||
|
*/
|
||
|
function type() {
|
||
|
|
||
|
}
|
||
|
|
||
|
type.prototype = {
|
||
|
/**
|
||
|
* @public
|
||
|
* @function copy
|
||
|
* @memberof v2.type
|
||
|
* @returns {v2.type}
|
||
|
*/
|
||
|
copy: function () {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* @public
|
||
|
* @function get_type
|
||
|
* @memberof v2.type
|
||
|
* @returns {v2.vt.base}
|
||
|
*/
|
||
|
get_type: function () {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* @public
|
||
|
* @function to_number
|
||
|
* @memberof v2.type
|
||
|
* @returns {number}
|
||
|
*/
|
||
|
to_number: function () {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* @public
|
||
|
* @function to_number
|
||
|
* @memberof v2.type
|
||
|
* @param other {v2.type}
|
||
|
* @returns {boolean}
|
||
|
*/
|
||
|
"==": function (other) {
|
||
|
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @static
|
||
|
* @name type
|
||
|
* @type {v2.vt.base}
|
||
|
*/
|
||
|
type.type = new v2.vt.base(-1);
|