Skip to content

Commit 53bb762

Browse files
Recompiled TypeDoc with TypeScript 1.7
1 parent ea0e6ef commit 53bb762

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+301
-566
lines changed

gruntfile.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ module.exports = function(grunt)
44
pkg: grunt.file.readJSON('package.json'),
55
ts: {
66
typedoc: {
7-
options: {
8-
basePath: 'src',
9-
declaration: true,
10-
comments: true,
11-
sourceMap: false
12-
},
13-
src: ['src/**/*.ts'],
14-
out: 'bin/typedoc.js'
7+
tsconfig: true
158
},
169
typescript: {
1710
options: {

lib/application.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
99
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1010
return c > 3 && r && Object.defineProperty(target, key, r), r;
1111
};
12-
var __metadata = (this && this.__metadata) || function (k, v) {
13-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14-
};
1512
var Path = require("path");
1613
var FS = require("fs");
1714
var typescript = require("typescript");
@@ -153,28 +150,24 @@ var Application = (function (_super) {
153150
help: 'Specify the logger that should be used, \'none\' or \'console\'',
154151
defaultValue: 'console',
155152
type: declaration_1.ParameterType.Mixed,
156-
}),
157-
__metadata('design:type', Object)
153+
})
158154
], Application.prototype, "loggerType", void 0);
159155
__decorate([
160156
component_1.Option({
161157
name: 'ignoreCompilerErrors',
162158
help: 'Should TypeDoc generate documentation pages even after the compiler has returned errors?',
163159
type: declaration_1.ParameterType.Boolean
164-
}),
165-
__metadata('design:type', Boolean)
160+
})
166161
], Application.prototype, "ignoreCompilerErrors", void 0);
167162
__decorate([
168163
component_1.Option({
169164
name: 'exclude',
170165
help: 'Define a pattern for excluded files when specifying paths.',
171166
type: declaration_1.ParameterType.String
172-
}),
173-
__metadata('design:type', String)
167+
})
174168
], Application.prototype, "exclude", void 0);
175169
Application = __decorate([
176-
component_1.Component({ name: "application", internal: true }),
177-
__metadata('design:paramtypes', [Object])
170+
component_1.Component({ name: "application", internal: true })
178171
], Application);
179172
return Application;
180173
})(component_1.ChildableComponent);

lib/cli.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
99
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1010
return c > 3 && r && Object.defineProperty(target, key, r), r;
1111
};
12-
var __metadata = (this && this.__metadata) || function (k, v) {
13-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14-
};
1512
var typescript = require("typescript");
1613
var application_1 = require("./application");
1714
var component_1 = require("./utils/component");
@@ -80,34 +77,30 @@ var CliApplication = (function (_super) {
8077
name: 'out',
8178
help: 'Specifies the location the documentation should be written to.',
8279
hint: declaration_1.ParameterHint.Directory
83-
}),
84-
__metadata('design:type', String)
80+
})
8581
], CliApplication.prototype, "out", void 0);
8682
__decorate([
8783
component_1.Option({
8884
name: 'json',
8985
help: 'Specifies the location and file name a json file describing the project is written to.',
9086
hint: declaration_1.ParameterHint.File
91-
}),
92-
__metadata('design:type', String)
87+
})
9388
], CliApplication.prototype, "json", void 0);
9489
__decorate([
9590
component_1.Option({
9691
name: 'version',
9792
short: 'v',
9893
help: 'Print the TypeDoc\'s version.',
9994
type: declaration_1.ParameterType.Boolean
100-
}),
101-
__metadata('design:type', Boolean)
95+
})
10296
], CliApplication.prototype, "version", void 0);
10397
__decorate([
10498
component_1.Option({
10599
name: 'help',
106100
short: 'h',
107101
help: 'Print this message.',
108102
type: declaration_1.ParameterType.Boolean
109-
}),
110-
__metadata('design:type', Boolean)
103+
})
111104
], CliApplication.prototype, "help", void 0);
112105
return CliApplication;
113106
})(application_1.Application);

lib/converter/convert-expression.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ function convertExpression(expression) {
1414
return '"' + expression.text + '"';
1515
case 8:
1616
return expression.text;
17-
case 97:
17+
case 99:
1818
return 'true';
19-
case 82:
19+
case 84:
2020
return 'false';
2121
default:
2222
var source = ts.getSourceFileOfNode(expression);

lib/converter/converter.js

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
99
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1010
return c > 3 && r && Object.defineProperty(target, key, r), r;
1111
};
12-
var __metadata = (this && this.__metadata) || function (k, v) {
13-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14-
};
1512
var ts = require("typescript");
1613
var declaration_1 = require("../utils/options/declaration");
1714
var context_1 = require("./context");
@@ -68,8 +65,8 @@ var Converter = (function (_super) {
6865
Converter.prototype.removeNodeConverter = function (converter) {
6966
var converters = this.nodeConverters;
7067
var keys = _.keys(this.nodeConverters);
71-
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
72-
var key = keys_1[_i];
68+
for (var _i = 0; _i < keys.length; _i++) {
69+
var key = keys[_i];
7370
if (converters[key] === converter) {
7471
delete converters[key];
7572
}
@@ -190,43 +187,37 @@ var Converter = (function (_super) {
190187
component_1.Option({
191188
name: "name",
192189
help: "Set the name of the project that will be used in the header of the template."
193-
}),
194-
__metadata('design:type', String)
190+
})
195191
], Converter.prototype, "name", void 0);
196192
__decorate([
197193
component_1.Option({
198194
name: "externalPattern",
199195
help: 'Define a pattern for files that should be considered being external.'
200-
}),
201-
__metadata('design:type', String)
196+
})
202197
], Converter.prototype, "externalPattern", void 0);
203198
__decorate([
204199
component_1.Option({
205200
name: "includeDeclarations",
206201
help: 'Turn on parsing of .d.ts declaration files.',
207202
type: declaration_1.ParameterType.Boolean
208-
}),
209-
__metadata('design:type', Boolean)
203+
})
210204
], Converter.prototype, "includeDeclarations", void 0);
211205
__decorate([
212206
component_1.Option({
213207
name: "excludeExternals",
214208
help: 'Prevent externally resolved TypeScript files from being documented.',
215209
type: declaration_1.ParameterType.Boolean
216-
}),
217-
__metadata('design:type', Boolean)
210+
})
218211
], Converter.prototype, "excludeExternals", void 0);
219212
__decorate([
220213
component_1.Option({
221214
name: "excludeNotExported",
222215
help: 'Prevent symbols that are not exported from being documented.',
223216
type: declaration_1.ParameterType.Boolean
224-
}),
225-
__metadata('design:type', Boolean)
217+
})
226218
], Converter.prototype, "excludeNotExported", void 0);
227219
Converter = __decorate([
228-
component_1.Component({ name: "converter", internal: true, childClass: components_1.ConverterComponent }),
229-
__metadata('design:paramtypes', [])
220+
component_1.Component({ name: "converter", internal: true, childClass: components_1.ConverterComponent })
230221
], Converter);
231222
return Converter;
232223
})(component_1.ChildableComponent);

lib/converter/factories/comment.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function createComment(node) {
99
}
1010
exports.createComment = createComment;
1111
function isTopmostModuleDeclaration(node) {
12-
if (node.nextContainer && node.nextContainer.kind == 216) {
12+
if (node.nextContainer && node.nextContainer.kind == 218) {
1313
var next = node.nextContainer;
1414
if (node.name.end + 1 == next.name.pos) {
1515
return false;
@@ -18,7 +18,7 @@ function isTopmostModuleDeclaration(node) {
1818
return true;
1919
}
2020
function getRootModuleDeclaration(node) {
21-
while (node.parent && node.parent.kind == 216) {
21+
while (node.parent && node.parent.kind == 218) {
2222
var parent_1 = node.parent;
2323
if (node.name.pos == parent_1.name.end + 1) {
2424
node = parent_1;
@@ -30,10 +30,10 @@ function getRootModuleDeclaration(node) {
3030
return node;
3131
}
3232
function getRawComment(node) {
33-
if (node.parent && node.parent.kind === 210) {
33+
if (node.parent && node.parent.kind === 212) {
3434
node = node.parent.parent;
3535
}
36-
else if (node.kind === 216) {
36+
else if (node.kind === 218) {
3737
if (!isTopmostModuleDeclaration(node)) {
3838
return null;
3939
}
@@ -45,7 +45,7 @@ function getRawComment(node) {
4545
var comments = ts.getJsDocComments(node, sourceFile);
4646
if (comments && comments.length) {
4747
var comment;
48-
if (node.kind == 246) {
48+
if (node.kind == 248) {
4949
if (comments.length == 1)
5050
return null;
5151
comment = comments[0];

lib/converter/factories/declaration.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function createDeclaration(context, node, kind, name) {
3333
if (kind == index_1.ReflectionKind.ExternalModule) {
3434
isExported = true;
3535
}
36-
else if (node.parent && node.parent.kind == 210) {
36+
else if (node.parent && node.parent.kind == 212) {
3737
isExported = isExported || !!(node.parent.parent.flags & 1);
3838
}
3939
else {
@@ -51,10 +51,10 @@ function createDeclaration(context, node, kind, name) {
5151
if (nonStaticKinds.indexOf(kind) == -1) {
5252
isStatic = !!(node.flags & 128);
5353
if (container.kind == index_1.ReflectionKind.Class) {
54-
if (node.parent && node.parent.kind == 142) {
54+
if (node.parent && node.parent.kind == 144) {
5555
isConstructorProperty = true;
5656
}
57-
else if (!node.parent || node.parent.kind != 212) {
57+
else if (!node.parent || node.parent.kind != 214) {
5858
isStatic = true;
5959
}
6060
}

lib/converter/factories/signature.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function createSignature(context, node, name, kind) {
2525
exports.createSignature = createSignature;
2626
function extractSignatureType(context, node) {
2727
var checker = context.checker;
28-
if (node.kind & 145 || node.kind & 166) {
28+
if (node.kind & 147 || node.kind & 168) {
2929
try {
3030
var signature = checker.getSignatureFromDeclaration(node);
3131
return context.converter.convertType(context, node.type, checker.getReturnTypeOfSignature(signature));

lib/converter/nodes/accessor.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
99
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1010
return c > 3 && r && Object.defineProperty(target, key, r), r;
1111
};
12-
var __metadata = (this && this.__metadata) || function (k, v) {
13-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14-
};
1512
var ts = require("typescript");
1613
var index_1 = require("../../models/index");
1714
var index_2 = require("../factories/index");
@@ -21,14 +18,14 @@ var AccessorConverter = (function (_super) {
2118
function AccessorConverter() {
2219
_super.apply(this, arguments);
2320
this.supports = [
24-
143,
25-
144
21+
145,
22+
146
2623
];
2724
}
2825
AccessorConverter.prototype.convert = function (context, node) {
2926
var accessor = index_2.createDeclaration(context, node, index_1.ReflectionKind.Accessor);
3027
context.withScope(accessor, function () {
31-
if (node.kind == 143) {
28+
if (node.kind == 145) {
3229
accessor.getSignature = index_2.createSignature(context, node, '__get', index_1.ReflectionKind.GetSignature);
3330
}
3431
else {
@@ -38,8 +35,7 @@ var AccessorConverter = (function (_super) {
3835
return accessor;
3936
};
4037
AccessorConverter = __decorate([
41-
components_1.Component({ name: 'node:accessor' }),
42-
__metadata('design:paramtypes', [])
38+
components_1.Component({ name: 'node:accessor' })
4339
], AccessorConverter);
4440
return AccessorConverter;
4541
})(components_1.ConverterNodeComponent);

lib/converter/nodes/alias.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
99
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1010
return c > 3 && r && Object.defineProperty(target, key, r), r;
1111
};
12-
var __metadata = (this && this.__metadata) || function (k, v) {
13-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14-
};
1512
var ts = require("typescript");
1613
var index_1 = require("../../models/index");
1714
var index_2 = require("../factories/index");
@@ -21,7 +18,7 @@ var AliasConverter = (function (_super) {
2118
function AliasConverter() {
2219
_super.apply(this, arguments);
2320
this.supports = [
24-
214
21+
216
2522
];
2623
}
2724
AliasConverter.prototype.convert = function (context, node) {
@@ -33,8 +30,7 @@ var AliasConverter = (function (_super) {
3330
return alias;
3431
};
3532
AliasConverter = __decorate([
36-
components_1.Component({ name: 'node:alias' }),
37-
__metadata('design:paramtypes', [])
33+
components_1.Component({ name: 'node:alias' })
3834
], AliasConverter);
3935
return AliasConverter;
4036
})(components_1.ConverterNodeComponent);

0 commit comments

Comments
 (0)