1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const abstract_1 = require("./abstract");
|
4 | class IntrinsicType extends abstract_1.Type {
|
5 | constructor(name) {
|
6 | super();
|
7 | this.type = 'intrinsic';
|
8 | this.name = name;
|
9 | }
|
10 | clone() {
|
11 | return new IntrinsicType(this.name);
|
12 | }
|
13 | equals(type) {
|
14 | return type instanceof IntrinsicType &&
|
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 | }
|
26 | exports.IntrinsicType = IntrinsicType;
|
27 |
|
\ | No newline at end of file |