UNPKG

3.74 kBJavaScriptView Raw
1"use strict";
2var __extends = (this && this.__extends) || (function () {
3 var extendStatics = Object.setPrototypeOf ||
4 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6 return function (d, b) {
7 extendStatics(d, b);
8 function __() { this.constructor = d; }
9 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10 };
11})();
12Object.defineProperty(exports, "__esModule", { value: true });
13var CSharpType = /** @class */ (function () {
14 function CSharpType(namespace, name, inherits) {
15 this.namespace = namespace;
16 this.name = name;
17 this.inherits = inherits;
18 }
19 return CSharpType;
20}());
21exports.CSharpType = CSharpType;
22var CSharpClassOrStructOrInterface = /** @class */ (function (_super) {
23 __extends(CSharpClassOrStructOrInterface, _super);
24 function CSharpClassOrStructOrInterface(namespace, name, inherits, constructors, properties) {
25 var _this = _super.call(this, namespace, name, inherits) || this;
26 _this.namespace = namespace;
27 _this.name = name;
28 _this.inherits = inherits;
29 _this.constructors = constructors;
30 _this.properties = properties;
31 return _this;
32 }
33 return CSharpClassOrStructOrInterface;
34}(CSharpType));
35exports.CSharpClassOrStructOrInterface = CSharpClassOrStructOrInterface;
36var CSharpMemberType = /** @class */ (function () {
37 function CSharpMemberType(name, isNullable, isCollection) {
38 this.name = name;
39 this.isNullable = isNullable;
40 this.isCollection = isCollection;
41 }
42 return CSharpMemberType;
43}());
44exports.CSharpMemberType = CSharpMemberType;
45var CSharpContructor = /** @class */ (function () {
46 function CSharpContructor(parameters) {
47 this.parameters = parameters;
48 }
49 return CSharpContructor;
50}());
51exports.CSharpContructor = CSharpContructor;
52var CSharpMember = /** @class */ (function () {
53 function CSharpMember(type, name) {
54 this.type = type;
55 this.name = name;
56 }
57 return CSharpMember;
58}());
59exports.CSharpMember = CSharpMember;
60var CSharpProperty = /** @class */ (function (_super) {
61 __extends(CSharpProperty, _super);
62 function CSharpProperty(type, name) {
63 var _this = _super.call(this, type, name) || this;
64 _this.type = type;
65 _this.name = name;
66 return _this;
67 }
68 return CSharpProperty;
69}(CSharpMember));
70exports.CSharpProperty = CSharpProperty;
71var CSharpParameter = /** @class */ (function (_super) {
72 __extends(CSharpParameter, _super);
73 function CSharpParameter(type, name, defaultValue) {
74 var _this = _super.call(this, type, name) || this;
75 _this.type = type;
76 _this.name = name;
77 _this.defaultValue = defaultValue;
78 return _this;
79 }
80 return CSharpParameter;
81}(CSharpMember));
82exports.CSharpParameter = CSharpParameter;
83var CSharpEnum = /** @class */ (function (_super) {
84 __extends(CSharpEnum, _super);
85 function CSharpEnum(namespace, name, inherits, entries) {
86 var _this = _super.call(this, namespace, name, inherits) || this;
87 _this.namespace = namespace;
88 _this.name = name;
89 _this.inherits = inherits;
90 _this.entries = entries;
91 return _this;
92 }
93 return CSharpEnum;
94}(CSharpType));
95exports.CSharpEnum = CSharpEnum;
96var CSharpEnumEntry = /** @class */ (function () {
97 function CSharpEnumEntry(name, value) {
98 this.name = name;
99 this.value = value;
100 }
101 return CSharpEnumEntry;
102}());
103exports.CSharpEnumEntry = CSharpEnumEntry;
104//# sourceMappingURL=c-sharp-objects.js.map
\No newline at end of file