UNPKG

679 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const abstract_1 = require("./abstract");
4class UnknownType extends abstract_1.Type {
5 constructor(name) {
6 super();
7 this.type = 'unknown';
8 this.name = name;
9 }
10 clone() {
11 return new UnknownType(this.name);
12 }
13 equals(type) {
14 return type instanceof UnknownType &&
15 type.name === this.name;
16 }
17 toObject() {
18 const result = super.toObject();
19 result.name = this.name;
20 return result;
21 }
22 toString() {
23 return this.name;
24 }
25}
26exports.UnknownType = UnknownType;
27//# sourceMappingURL=unknown.js.map
\No newline at end of file