diff --git a/.gitignore b/.gitignore index ed6e9f1fe..19bf949ed 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ yarn-error.log /dist/ typedoc*.tgz +tmp diff --git a/README.md b/README.md index c87c4d3b5..b675b3180 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,8 @@ For a complete list of the command line arguments run `typedoc --help` or visit * `--out `
Specifies the location the documentation should be written to. Defaults to `./docs` -* `--mode `
- Specifies the output mode the project is used to be compiled with. +* `--mode `
+ Specifies the output mode the project is used to be compiled with. See [the documentation](https://typedoc.org/guides/options/#mode) for a comparison of each mode. * `--options`
Specify a json option file that should be loaded. If not specified TypeDoc will look for 'typedoc.json' in the current directory. * `--json `
diff --git a/UPDATING.md b/UPDATING.md deleted file mode 100644 index 22a275bc9..000000000 --- a/UPDATING.md +++ /dev/null @@ -1,38 +0,0 @@ - -## Updating -TypeDoc uses internal TypeScript compiler APIs. Since internal APIs can be changed by a minor -release, TypeDoc must target exact TypeScript compiler versions. If your project is using a newer -version of TypeScript than TypeDoc, but does not rely on features from the latest version, you -may be able to get away with using a version of TypeDoc that targets a lower TypeScript version. - -If you need the latest version and one hasn't yet been published then these are the steps -you should follow to build your own. - -```bash -# Checkout a copy of TypeDoc if you don't have one already -git clone https://github.com/TypeStrong/typedoc -cd typedoc - -# Change the version of TypeScript used by the project -editor package.json - -npm install # install TypeDoc's dependencies - -# Build and run the automated TypeDoc tests -npm run build_and_test -``` - -Once this has been done, you should have a functional version of TypeDoc for -your version of TypeScript. Please open a Pull Request with your updated project -so that others may benefit from the update. - -To use your version of TypeDoc in a project, point your `package.json` -file at it using your GitHub project path. - -```json -{ - "dependencies": { - "typedoc": "mygithubuser/typedoc#v1.8.10" - } -} -``` diff --git a/package-lock.json b/package-lock.json index 714cc31f0..e201eec6d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "typedoc", - "version": "0.16.7", + "version": "0.17.0-3", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -321,9 +321,9 @@ "dev": true }, "@types/node": { - "version": "13.1.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-13.1.6.tgz", - "integrity": "sha512-Jg1F+bmxcpENHP23sVKkNuU3uaxPnsBMW0cLjleiikFKomJQbsn0Cqk2yDvQArqzZN6ABfBkZ0To7pQ8sLdWDg==", + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.5.0.tgz", + "integrity": "sha512-Onhn+z72D2O2Pb2ql2xukJ55rglumsVo1H6Fmyi8mlU9SvKdBk/pUSUAiBY/d9bAOF7VVWajX3sths/+g6ZiAQ==", "dev": true }, "@types/shelljs": { @@ -881,12 +881,9 @@ "dev": true }, "highlight.js": { - "version": "9.17.1", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.17.1.tgz", - "integrity": "sha512-TA2/doAur5Ol8+iM3Ov7qy3jYcr/QiJ2eDTdRF4dfbjG7AaaB99J5G+zSl11ljbl6cIcahgPY6SKb3sC3EJ0fw==", - "requires": { - "handlebars": "^4.5.3" - } + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.18.0.tgz", + "integrity": "sha512-A97kI1KAUzKoAiEoaGcf2O9YPS8nbDTCRFokaaeBhnqjQTvbAuAJrQMm21zw8s8xzaMtCQBtgbyGXLGxdxQyqQ==" }, "html-escaper": { "version": "2.0.0", @@ -2028,9 +2025,9 @@ }, "dependencies": { "diff": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true } } @@ -2060,9 +2057,9 @@ } }, "typedoc-default-themes": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/typedoc-default-themes/-/typedoc-default-themes-0.7.2.tgz", - "integrity": "sha512-fiFKlFO6VTqjcno8w6WpTsbCgXmfPHVjnLfYkmByZE7moaz+E2DSpAT+oHtDHv7E0BM5kAhPrHJELP2J2Y2T9A==", + "version": "0.8.0-0", + "resolved": "https://registry.npmjs.org/typedoc-default-themes/-/typedoc-default-themes-0.8.0-0.tgz", + "integrity": "sha512-blFWppm5aKnaPOa1tpGO9MLu+njxq7P3rtkXK4QxJBNszA+Jg7x0b+Qx0liXU1acErur6r/iZdrwxp5DUFdSXw==", "requires": { "backbone": "^1.4.0", "jquery": "^3.4.1", @@ -2071,9 +2068,10 @@ } }, "typescript": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.4.tgz", - "integrity": "sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw==" + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.2.tgz", + "integrity": "sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ==", + "dev": true }, "uglify-js": { "version": "3.7.5", diff --git a/package.json b/package.json index b90fd3f4f..e087b92ff 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "typedoc", "description": "Create api documentation for TypeScript projects.", - "version": "0.16.7", + "version": "0.17.0-3", "homepage": "https://typedoc.org", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -27,20 +27,22 @@ } ], "engines": { - "node": ">= 6.0.0" + "node": ">= 8.0.0" }, "dependencies": { "@types/minimatch": "3.0.3", "fs-extra": "^8.1.0", "handlebars": "^4.7.2", - "highlight.js": "^9.17.1", + "highlight.js": "^9.18.0", "lodash": "^4.17.15", "marked": "^0.8.0", "minimatch": "^3.0.0", "progress": "^2.0.3", "shelljs": "^0.8.3", - "typedoc-default-themes": "^0.7.2", - "typescript": "3.7.x" + "typedoc-default-themes": "0.8.0-0" + }, + "peerDependencies": { + "typescript": ">=3.7" }, "devDependencies": { "@types/fs-extra": "^8.0.1", @@ -48,12 +50,13 @@ "@types/marked": "^0.7.2", "@types/mocha": "^5.2.7", "@types/mockery": "^1.4.29", - "@types/node": "^13.1.6", + "@types/node": "^13.5.0", "@types/shelljs": "^0.8.6", "mocha": "^7.0.0", "mockery": "^2.1.0", "nyc": "15.0.0", - "tslint": "^5.20.1" + "tslint": "^5.20.1", + "typescript": "3.7.x" }, "files": [ "bin", diff --git a/scripts/rebuild_specs.js b/scripts/rebuild_specs.js index 4bb90ea64..2848d1cc7 100644 --- a/scripts/rebuild_specs.js +++ b/scripts/rebuild_specs.js @@ -42,6 +42,10 @@ const conversions = [ () => app.options.setValue('categorizeByGroup', false), () => app.options.setValue('categorizeByGroup', true) ], + ['specs.lib', + () => app.options.setValue('mode', 'library'), + () => app.options.setValue('mode', 'modules'), + ] ]; /** diff --git a/src/lib/converter/converter.ts b/src/lib/converter/converter.ts index e65ca05c2..1c59e826a 100644 --- a/src/lib/converter/converter.ts +++ b/src/lib/converter/converter.ts @@ -7,7 +7,7 @@ import { Reflection, Type, ProjectReflection } from '../models/index'; import { Context } from './context'; import { ConverterComponent, ConverterNodeComponent, ConverterTypeComponent, TypeTypeConverter, TypeNodeConverter } from './components'; import { Component, ChildableComponent, ComponentClass } from '../utils/component'; -import { BindOption } from '../utils'; +import { BindOption, SourceFileMode } from '../utils'; import { normalizePath } from '../utils/fs'; import { createMinimatch } from '../utils/paths'; @@ -358,40 +358,29 @@ export class Converter extends ChildableComponent { const program = context.program; - const exclude = createMinimatch(this.application.exclude || []); const isExcluded = (file: ts.SourceFile) => exclude.some(mm => mm.match(file.fileName)); - const includedSourceFiles = program.getSourceFiles() .filter(file => !isExcluded(file)); - const isRelevantError = ({ file }: ts.Diagnostic) => !file || includedSourceFiles.includes(file); - - includedSourceFiles.forEach((sourceFile) => { - this.convertNode(context, sourceFile); - }); - - if (this.application.ignoreCompilerErrors) { - return []; - } - - let diagnostics = program.getOptionsDiagnostics().filter(isRelevantError); - if (diagnostics.length) { - return diagnostics; - } - diagnostics = program.getSyntacticDiagnostics().filter(isRelevantError); - if (diagnostics.length) { - return diagnostics; - } - - diagnostics = program.getGlobalDiagnostics().filter(isRelevantError); - if (diagnostics.length) { - return diagnostics; + const errors = this.getCompilerErrors(program, includedSourceFiles); + if (errors.length) { + return errors; } - diagnostics = program.getSemanticDiagnostics().filter(isRelevantError); - if (diagnostics.length) { - return diagnostics; + if (this.application.options.getValue('mode') === SourceFileMode.Library) { + for (const fileName of context.fileNames) { + const sourceFile = includedSourceFiles.find(file => fileName === file.fileName); + if (sourceFile) { + this.convertNode(context, sourceFile); + } else { + this.application.logger.warn(`Failed to find source file of entry point ${fileName}`); + } + } + } else { + includedSourceFiles.forEach((sourceFile) => { + this.convertNode(context, sourceFile); + }); } return []; @@ -418,6 +407,36 @@ export class Converter extends ChildableComponent { + if (this.application.ignoreCompilerErrors) { + return []; + } + + const isRelevantError = ({ file }: ts.Diagnostic) => !file || includedSourceFiles.includes(file); + + let diagnostics = program.getOptionsDiagnostics().filter(isRelevantError); + if (diagnostics.length) { + return diagnostics; + } + + diagnostics = program.getSyntacticDiagnostics().filter(isRelevantError); + if (diagnostics.length) { + return diagnostics; + } + + diagnostics = program.getGlobalDiagnostics().filter(isRelevantError); + if (diagnostics.length) { + return diagnostics; + } + + diagnostics = program.getSemanticDiagnostics().filter(isRelevantError); + if (diagnostics.length) { + return diagnostics; + } + + return []; + } + /** * Return the basename of the default library that should be used. * diff --git a/src/lib/converter/factories/declaration.ts b/src/lib/converter/factories/declaration.ts index 5ec62f8e4..008a39537 100644 --- a/src/lib/converter/factories/declaration.ts +++ b/src/lib/converter/factories/declaration.ts @@ -11,7 +11,7 @@ import { createReferenceType } from './reference'; const nonStaticKinds = [ ReflectionKind.Class, ReflectionKind.Interface, - ReflectionKind.Module + ReflectionKind.Namespace ]; /** @@ -71,12 +71,12 @@ export function createDeclaration(context: Context, node: ts.Declaration, kind: // Test whether the node is exported let isExported: boolean; - if (kind === ReflectionKind.ExternalModule || kind === ReflectionKind.Global) { + if (kind === ReflectionKind.Module || kind === ReflectionKind.Global) { isExported = true; } else if (container.kind === ReflectionKind.Global) { // In file mode, everything is exported. isExported = true; - } else if (container.kindOf([ReflectionKind.Module, ReflectionKind.ExternalModule])) { + } else if (container.kindOf([ReflectionKind.Namespace, ReflectionKind.Module])) { const symbol = context.getSymbolAtLocation(node); if (!symbol) { isExported = false; @@ -213,7 +213,7 @@ function canMergeReflectionsByKind(kind1: ReflectionKind, kind2: ReflectionKind) */ function mergeDeclarations(context: Context, reflection: DeclarationReflection, node: ts.Node, kind: ReflectionKind) { if (reflection.kind !== kind) { - const weights = [ReflectionKind.Module, ReflectionKind.Enum, ReflectionKind.Class]; + const weights = [ReflectionKind.Namespace, ReflectionKind.Enum, ReflectionKind.Class]; const kindWeight = weights.indexOf(kind); const childKindWeight = weights.indexOf(reflection.kind); if (kindWeight > childKindWeight) { diff --git a/src/lib/converter/nodes/block.ts b/src/lib/converter/nodes/block.ts index bd3581b75..5b28e0ff9 100644 --- a/src/lib/converter/nodes/block.ts +++ b/src/lib/converter/nodes/block.ts @@ -1,4 +1,5 @@ import * as ts from 'typescript'; +import { resolve } from 'path'; import { Reflection, ReflectionKind, ReflectionFlag } from '../../models/index'; import { createDeclaration } from '../factories/index'; @@ -17,6 +18,9 @@ export class BlockConverter extends ConverterNodeComponent resolve(file).replace(/\\/g, '/')); + const isInputFile = (node: ts.SourceFile) => inputFiles.includes(node.fileName); + context.withSourceFile(node, () => { if (this.mode === SourceFileMode.Modules) { - result = createDeclaration(context, node, ReflectionKind.ExternalModule, node.fileName); + result = createDeclaration(context, node, ReflectionKind.Module, node.fileName); context.withScope(result, () => { this.convertStatements(context, node); result!.setFlag(ReflectionFlag.Exported); }); + } else if (this.mode === SourceFileMode.Library) { + if (inputFiles.length > 1 || !isInputFile(node)) { + result = createDeclaration(context, node, ReflectionKind.Module, node.fileName); + context.withScope(result, () => { + this.convertVisibleDeclarations(context, node); + result!.setFlag(ReflectionFlag.Exported); + }); + } else { + this.convertVisibleDeclarations(context, node); + } } else { this.convertStatements(context, node); } @@ -85,4 +102,19 @@ export class BlockConverter extends ConverterNodeComponent context.scope - : createDeclaration(context, node, ReflectionKind.Module); + : createDeclaration(context, node, ReflectionKind.Namespace); context.withScope(reflection, () => { if (node.body) { this.owner.convertNode(context, node.body); diff --git a/src/lib/converter/plugins/CommentPlugin.ts b/src/lib/converter/plugins/CommentPlugin.ts index 1e86d2435..c77af3eb9 100644 --- a/src/lib/converter/plugins/CommentPlugin.ts +++ b/src/lib/converter/plugins/CommentPlugin.ts @@ -111,7 +111,7 @@ export class CommentPlugin extends ConverterComponent { CommentPlugin.removeTags(comment, 'event'); } - if (reflection.kindOf(ReflectionKind.ExternalModule)) { + if (reflection.kindOf(ReflectionKind.Module)) { CommentPlugin.removeTags(comment, 'packagedocumentation'); } } @@ -172,7 +172,7 @@ export class CommentPlugin extends ConverterComponent { if (reflection.kindOf(ReflectionKind.FunctionOrMethod) || (reflection.kindOf(ReflectionKind.Event) && reflection['signatures'])) { const comment = parseComment(rawComment, reflection.comment); this.applyModifiers(reflection, comment); - } else if (reflection.kindOf(ReflectionKind.Module)) { + } else if (reflection.kindOf(ReflectionKind.Namespace)) { this.storeModuleComment(rawComment, reflection); } else { const comment = parseComment(rawComment, reflection.comment); diff --git a/src/lib/converter/plugins/DynamicModulePlugin.ts b/src/lib/converter/plugins/DynamicModulePlugin.ts index d89080aaa..07a3ca8b6 100644 --- a/src/lib/converter/plugins/DynamicModulePlugin.ts +++ b/src/lib/converter/plugins/DynamicModulePlugin.ts @@ -52,7 +52,7 @@ export class DynamicModulePlugin extends ConverterComponent { * @param node The node that is currently processed if available. */ private onDeclaration(context: Context, reflection: Reflection, node?: ts.Node) { - if (reflection.kindOf(ReflectionKind.ExternalModule)) { + if (reflection.kindOf(ReflectionKind.Module)) { let name = reflection.name; if (!name.includes('/')) { return; diff --git a/src/lib/converter/plugins/GitHubPlugin.ts b/src/lib/converter/plugins/GitHubPlugin.ts index 813f39542..fed2e2727 100644 --- a/src/lib/converter/plugins/GitHubPlugin.ts +++ b/src/lib/converter/plugins/GitHubPlugin.ts @@ -130,7 +130,7 @@ export class Repository { * @param path The potential repository root. * @returns A new instance of [[Repository]] or undefined. */ - static tryCreateRepository(path: string, gitRevision: string): Repository | undefined { + static tryCreateRepository(path: string, gitRevision: string, gitRemote: string): Repository | undefined { ShellJS.pushd(path); const out = ShellJS.exec('git rev-parse --show-toplevel', {silent: true}); ShellJS.popd(); @@ -139,7 +139,7 @@ export class Repository { return; } - let remotesOutput = ShellJS.exec('git ls-remote --get-url', {silent: true}); + const remotesOutput = ShellJS.exec(`git remote get-url ${gitRemote}`, {silent: true}); let remotes: string[] = (remotesOutput.code === 0) ? remotesOutput.stdout.split('\n') : []; return new Repository(BasePath.normalize(out.stdout.replace('\n', '')), gitRevision, remotes); @@ -163,7 +163,10 @@ export class GitHubPlugin extends ConverterComponent { private ignoredPaths: string[] = []; @BindOption('gitRevision') - gitRevision!: string; + readonly gitRevision!: string; + + @BindOption('gitRemote') + readonly gitRemote!: string; /** * Create a new GitHubHandler instance. @@ -203,7 +206,7 @@ export class GitHubPlugin extends ConverterComponent { } // Try to create a new repository - const repository = Repository.tryCreateRepository(dirName, this.gitRevision); + const repository = Repository.tryCreateRepository(dirName, this.gitRevision, this.gitRemote); if (repository) { this.repositories[repository.path.toLowerCase()] = repository; return repository; diff --git a/src/lib/converter/plugins/GroupPlugin.ts b/src/lib/converter/plugins/GroupPlugin.ts index 80e634d36..97e21e2e3 100644 --- a/src/lib/converter/plugins/GroupPlugin.ts +++ b/src/lib/converter/plugins/GroupPlugin.ts @@ -17,8 +17,8 @@ export class GroupPlugin extends ConverterComponent { */ static WEIGHTS = [ ReflectionKind.Global, - ReflectionKind.ExternalModule, ReflectionKind.Module, + ReflectionKind.Namespace, ReflectionKind.Enum, ReflectionKind.EnumMember, ReflectionKind.Class, diff --git a/src/lib/converter/plugins/SourcePlugin.ts b/src/lib/converter/plugins/SourcePlugin.ts index 79a5fdc1e..cdb70a6df 100644 --- a/src/lib/converter/plugins/SourcePlugin.ts +++ b/src/lib/converter/plugins/SourcePlugin.ts @@ -8,12 +8,16 @@ import { Component, ConverterComponent } from '../components'; import { BasePath } from '../utils/base-path'; import { Converter } from '../converter'; import { Context } from '../context'; +import { BindOption } from '../../utils'; /** * A handler that attaches source file information to reflections. */ @Component({name: 'source'}) export class SourcePlugin extends ConverterComponent { + @BindOption('disableSources') + readonly disableSources!: boolean; + /** * Helper for resolving the base path of all source files. */ @@ -87,7 +91,7 @@ export class SourcePlugin extends ConverterComponent { * @param node The node that is currently processed if available. */ private onDeclaration(context: Context, reflection: Reflection, node?: ts.Node) { - if (!node) { + if (!node || this.disableSources) { return; } const sourceFile = node.getSourceFile(); diff --git a/src/lib/models/reflections/abstract.ts b/src/lib/models/reflections/abstract.ts index 162097aa9..0aff71480 100644 --- a/src/lib/models/reflections/abstract.ts +++ b/src/lib/models/reflections/abstract.ts @@ -36,8 +36,8 @@ export function resetReflectionID() { */ export enum ReflectionKind { Global = 0, - ExternalModule = 1 << 0, - Module = 1 << 1, + Module = 1 << 0, + Namespace = 1 << 1, Enum = 1 << 2, EnumMember = 1 << 4, Variable = 1 << 5, @@ -66,7 +66,7 @@ export enum ReflectionKind { FunctionOrMethod = ReflectionKind.Function | Method, ClassMember = Accessor | Constructor | Method | Property | Event, SomeSignature = CallSignature | IndexSignature | ConstructorSignature | GetSignature | SetSignature, - SomeModule = Module | ExternalModule, + SomeModule = Namespace | Module, SomeType = Interface | TypeLiteral | TypeParameter | TypeAlias, SomeValue = Variable | Function | ObjectLiteral } diff --git a/src/lib/output/plugins/MarkedLinksPlugin.ts b/src/lib/output/plugins/MarkedLinksPlugin.ts index cd2307d70..4010fcb69 100644 --- a/src/lib/output/plugins/MarkedLinksPlugin.ts +++ b/src/lib/output/plugins/MarkedLinksPlugin.ts @@ -49,8 +49,9 @@ export class MarkedLinksPlugin extends ContextAwareRendererComponent { */ private replaceBrackets(text: string): string { return text.replace(this.brackets, (match: string, content: string): string => { - const split = MarkedLinksPlugin.splitLinkText(content); - return this.buildLink(match, split.target, split.caption); + const monospace = content[0] === '`' && content[content.length - 1] === '`'; + const split = MarkedLinksPlugin.splitLinkText(monospace ? content.slice(1, -1) : content); + return this.buildLink(match, split.target, split.caption, monospace); }); } diff --git a/src/lib/output/themes/DefaultTheme.ts b/src/lib/output/themes/DefaultTheme.ts index e79ff3cf5..e9703ce2e 100644 --- a/src/lib/output/themes/DefaultTheme.ts +++ b/src/lib/output/themes/DefaultTheme.ts @@ -61,7 +61,7 @@ export class DefaultTheme extends Theme { directory: 'enums', template: 'reflection.hbs' }, { - kind: [ReflectionKind.Module, ReflectionKind.ExternalModule], + kind: [ReflectionKind.Namespace, ReflectionKind.Module], isLeaf: false, directory: 'modules', template: 'reflection.hbs' @@ -375,7 +375,7 @@ export class NavigationBuilder { let target = someModule.parent; let inScope = (someModule === this.entryPoint); while (target) { - if (target.kindOf(ReflectionKind.ExternalModule)) { + if (target.kindOf(ReflectionKind.Module)) { return; } if (this.entryPoint === target) { diff --git a/src/lib/utils/options/declaration.ts b/src/lib/utils/options/declaration.ts index 54bd493f4..9d83c8348 100644 --- a/src/lib/utils/options/declaration.ts +++ b/src/lib/utils/options/declaration.ts @@ -31,7 +31,7 @@ export type TypeDocAndTSOptions = TypeDocOptions & Pick, IgnoredTsOptionKeys>>; export enum SourceFileMode { - File, Modules + File, Modules, Library } /** @@ -43,7 +43,7 @@ export interface TypeDocOptionMap { tsconfig: string; inputFiles: string[]; - mode: { file: SourceFileMode.File, modules: SourceFileMode.Modules }; + mode: { file: SourceFileMode.File, modules: SourceFileMode.Modules, library: SourceFileMode.Library }; includeDeclarations: boolean; entryPoint: string; exclude: string[]; @@ -53,6 +53,7 @@ export interface TypeDocOptionMap { excludePrivate: boolean; excludeProtected: boolean; ignoreCompilerErrors: boolean; + disableSources: boolean; includes: string; media: string; @@ -67,6 +68,7 @@ export interface TypeDocOptionMap { categoryOrder: string[]; categorizeByGroup: boolean; gitRevision: string; + gitRemote: string; gaID: string; gaSite: string; hideGenerator: boolean; diff --git a/src/lib/utils/options/sources/typedoc.ts b/src/lib/utils/options/sources/typedoc.ts index 175b209be..77142aedf 100644 --- a/src/lib/utils/options/sources/typedoc.ts +++ b/src/lib/utils/options/sources/typedoc.ts @@ -23,11 +23,12 @@ export function addTypeDocOptions(options: Options) { options.addDeclaration({ name: 'mode', - help: "Specifies the output mode the project is used to be compiled with: 'file' or 'modules'", + help: "Specifies the output mode the project is used to be compiled with: 'file', 'modules' or 'library'", type: ParameterType.Map, map: { - 'file': SourceFileMode.File, - 'modules': SourceFileMode.Modules + file: SourceFileMode.File, + modules: SourceFileMode.Modules, + library: SourceFileMode.Library }, defaultValue: SourceFileMode.Modules }); @@ -73,7 +74,12 @@ export function addTypeDocOptions(options: Options) { }); options.addDeclaration({ name: 'ignoreCompilerErrors', - help: 'Should TypeDoc generate documentation pages even after the compiler has returned errors?', + help: 'Skips checking for TypeScript compilation errors if set.', + type: ParameterType.Boolean + }); + options.addDeclaration({ + name: 'disableSources', + help: 'Disables setting the source of a reflection when documenting it.', type: ParameterType.Boolean }); options.addDeclaration({ @@ -137,6 +143,11 @@ export function addTypeDocOptions(options: Options) { name: 'gitRevision', help: 'Use specified revision instead of the last revision for linking to GitHub source files.' }); + options.addDeclaration({ + name: 'gitRemote', + help: 'Use the specified remote for linking to GitHub source files.', + defaultValue: 'origin' + }); options.addDeclaration({ name: 'gaID', help: 'Set the Google Analytics tracking ID and activate tracking code.' diff --git a/src/test/converter.test.ts b/src/test/converter.test.ts index dac3ecd62..77f5ea83b 100644 --- a/src/test/converter.test.ts +++ b/src/test/converter.test.ts @@ -25,16 +25,20 @@ describe('Converter', function() { const checks: [string, () => void, () => void][] = [ ['specs', () => { }, () => { }], ['specs.d', - () => app.options.setValue('includeDeclarations', true), - () => app.options.setValue('includeDeclarations', false) + () => app.options.setValue('includeDeclarations', true).unwrap(), + () => app.options.setValue('includeDeclarations', false).unwrap() ], ['specs-without-exported', - () => app.options.setValue('excludeNotExported', true), - () => app.options.setValue('excludeNotExported', false) + () => app.options.setValue('excludeNotExported', true).unwrap(), + () => app.options.setValue('excludeNotExported', false).unwrap() ], ['specs-with-lump-categories', - () => app.options.setValue('categorizeByGroup', false), - () => app.options.setValue('categorizeByGroup', true) + () => app.options.setValue('categorizeByGroup', false).unwrap(), + () => app.options.setValue('categorizeByGroup', true).unwrap() + ], + ['specs.lib', + () => app.options.setValue('mode', 'library').unwrap(), + () => app.options.setValue('mode', 'modules').unwrap() ] ]; diff --git a/src/test/converter/alias/specs.json b/src/test/converter/alias/specs.json index cb302bdae..9b2ae3bf7 100644 --- a/src/test/converter/alias/specs.json +++ b/src/test/converter/alias/specs.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"alias\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -629,7 +629,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1 diff --git a/src/test/converter/class/specs-with-lump-categories.json b/src/test/converter/class/specs-with-lump-categories.json index f63eac446..f485f048d 100644 --- a/src/test/converter/class/specs-with-lump-categories.json +++ b/src/test/converter/class/specs-with-lump-categories.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"access\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -336,7 +336,7 @@ "id": 15, "name": "\"class\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1741,7 +1741,7 @@ "id": 75, "name": "\"clodule-with-subclass\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1887,7 +1887,7 @@ "id": 80, "name": "\"constructor-properties\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -2358,7 +2358,7 @@ "id": 101, "name": "\"decorators\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -2725,7 +2725,7 @@ "id": 145, "name": "\"events\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -2802,7 +2802,7 @@ "id": 118, "name": "\"events-overloads\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -3227,7 +3227,7 @@ "id": 148, "name": "\"generic-class\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -3664,7 +3664,7 @@ "id": 166, "name": "\"getter-setter\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -3871,7 +3871,7 @@ "id": 178, "name": "\"this\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -3965,7 +3965,7 @@ "id": 182, "name": "\"type-operator\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -4147,7 +4147,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1, diff --git a/src/test/converter/class/specs-without-exported.json b/src/test/converter/class/specs-without-exported.json index 6f61d9b4e..75a0e7b26 100644 --- a/src/test/converter/class/specs-without-exported.json +++ b/src/test/converter/class/specs-without-exported.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"access\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -336,7 +336,7 @@ "id": 15, "name": "\"class\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1624,7 +1624,7 @@ "id": 69, "name": "\"clodule-with-subclass\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1770,7 +1770,7 @@ "id": 74, "name": "\"constructor-properties\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1787,7 +1787,7 @@ "id": 75, "name": "\"decorators\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1804,7 +1804,7 @@ "id": 77, "name": "\"events\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1821,7 +1821,7 @@ "id": 76, "name": "\"events-overloads\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1838,7 +1838,7 @@ "id": 78, "name": "\"generic-class\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1855,7 +1855,7 @@ "id": 79, "name": "\"getter-setter\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1872,7 +1872,7 @@ "id": 80, "name": "\"this\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1966,7 +1966,7 @@ "id": 84, "name": "\"type-operator\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -2148,7 +2148,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1, diff --git a/src/test/converter/class/specs.json b/src/test/converter/class/specs.json index 22900fd8c..b6e61523b 100644 --- a/src/test/converter/class/specs.json +++ b/src/test/converter/class/specs.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"access\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -336,7 +336,7 @@ "id": 15, "name": "\"class\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1737,7 +1737,7 @@ "id": 75, "name": "\"clodule-with-subclass\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1883,7 +1883,7 @@ "id": 80, "name": "\"constructor-properties\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -2354,7 +2354,7 @@ "id": 101, "name": "\"decorators\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -2721,7 +2721,7 @@ "id": 145, "name": "\"events\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -2798,7 +2798,7 @@ "id": 118, "name": "\"events-overloads\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -3223,7 +3223,7 @@ "id": 148, "name": "\"generic-class\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -3660,7 +3660,7 @@ "id": 166, "name": "\"getter-setter\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -3867,7 +3867,7 @@ "id": 178, "name": "\"this\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -3961,7 +3961,7 @@ "id": 182, "name": "\"type-operator\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -4143,7 +4143,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1, diff --git a/src/test/converter/comment/specs.json b/src/test/converter/comment/specs.json index 04d70de99..9300c4626 100644 --- a/src/test/converter/comment/specs.json +++ b/src/test/converter/comment/specs.json @@ -8,7 +8,7 @@ "id": 6, "name": "\"comment\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -232,7 +232,7 @@ "id": 1, "name": "\"comment2\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -321,7 +321,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 6, diff --git a/src/test/converter/declaration/specs.d.json b/src/test/converter/declaration/specs.d.json index e42288d8c..43dc46084 100644 --- a/src/test/converter/declaration/specs.d.json +++ b/src/test/converter/declaration/specs.d.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"declaration.d\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -111,7 +111,7 @@ "id": 5, "name": "\"export-declaration.d\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -171,7 +171,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1, diff --git a/src/test/converter/dots.in.path/specs.json b/src/test/converter/dots.in.path/specs.json index 0673b9962..931a5bb1a 100644 --- a/src/test/converter/dots.in.path/specs.json +++ b/src/test/converter/dots.in.path/specs.json @@ -8,7 +8,7 @@ "id": 3, "name": "\"function\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -86,7 +86,7 @@ "id": 1, "name": "\"interface-empty\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -132,7 +132,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 3, diff --git a/src/test/converter/enum/specs.json b/src/test/converter/enum/specs.json index 558676852..d54a65615 100644 --- a/src/test/converter/enum/specs.json +++ b/src/test/converter/enum/specs.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"enum\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -363,7 +363,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1 diff --git a/src/test/converter/exports/specs-without-exported.json b/src/test/converter/exports/specs-without-exported.json index 74f6ecb0b..459ffeb24 100644 --- a/src/test/converter/exports/specs-without-exported.json +++ b/src/test/converter/exports/specs-without-exported.json @@ -8,7 +8,7 @@ "id": 14, "name": "\"export\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -145,7 +145,7 @@ "id": 1, "name": "\"export-assignment\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -162,7 +162,7 @@ "id": 2, "name": "\"export-default\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -179,7 +179,7 @@ "id": 3, "name": "\"export-with-local\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -295,7 +295,7 @@ "id": 9, "name": "\"mod\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -375,7 +375,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 14, diff --git a/src/test/converter/exports/specs.json b/src/test/converter/exports/specs.json index 32586c974..3bfb0bc12 100644 --- a/src/test/converter/exports/specs.json +++ b/src/test/converter/exports/specs.json @@ -8,7 +8,7 @@ "id": 26, "name": "\"export\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -186,7 +186,7 @@ "id": 1, "name": "\"export-assignment\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -268,7 +268,7 @@ "id": 6, "name": "\"export-default\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -318,7 +318,7 @@ "id": 8, "name": "\"export-with-local\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -508,7 +508,7 @@ "id": 19, "name": "\"mod\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -625,7 +625,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 26, diff --git a/src/test/converter/exports/specs.lib.json b/src/test/converter/exports/specs.lib.json new file mode 100644 index 000000000..0a4b7b43c --- /dev/null +++ b/src/test/converter/exports/specs.lib.json @@ -0,0 +1,3810 @@ +{ + "id": 0, + "name": "typedoc", + "kind": 0, + "flags": {}, + "children": [ + { + "id": 10, + "name": "\"export\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "%BASE%/exports/export.ts", + "children": [ + { + "id": 19, + "name": "\"mod\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "%BASE%/exports/mod.ts", + "children": [ + { + "id": 24, + "name": "Node", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 27, + "name": "decorators", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 499, + "character": 18 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "Decorator" + } + ], + "name": "NodeArray" + } + }, + { + "id": 31, + "name": "end", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 73, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 31, + "name": "TextRange.end" + } + }, + { + "id": 26, + "name": "flags", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 498, + "character": 13 + } + ], + "type": { + "type": "reference", + "name": "NodeFlags" + } + }, + { + "id": 25, + "name": "kind", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 497, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "SyntaxKind" + } + }, + { + "id": 28, + "name": "modifiers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 500, + "character": 17 + } + ], + "type": { + "type": "reference", + "name": "ModifiersArray" + } + }, + { + "id": 29, + "name": "parent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 501, + "character": 14 + } + ], + "type": { + "type": "reference", + "id": 24, + "name": "Node" + } + }, + { + "id": 30, + "name": "pos", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 72, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 30, + "name": "TextRange.pos" + } + }, + { + "id": 72, + "name": "forEachChild", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 73, + "name": "forEachChild", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 74, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": { + "isExported": true + } + } + ], + "parameters": [ + { + "id": 75, + "name": "cbNode", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 76, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 77, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 78, + "name": "node", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 24, + "name": "Node" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4871, + "character": 31 + } + ] + } + } + }, + { + "id": 79, + "name": "cbNodeArray", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 80, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 81, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 82, + "name": "nodes", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 24, + "name": "Node" + } + ], + "name": "NodeArray" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4871, + "character": 76 + } + ] + } + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4871, + "character": 20 + } + ] + }, + { + "id": 37, + "name": "getChildAt", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 38, + "name": "getChildAt", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 39, + "name": "index", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 40, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "reference", + "id": 24, + "name": "Node" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4859, + "character": 18 + } + ] + }, + { + "id": 34, + "name": "getChildCount", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 35, + "name": "getChildCount", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 36, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4858, + "character": 21 + } + ] + }, + { + "id": 41, + "name": "getChildren", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 42, + "name": "getChildren", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 43, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 24, + "name": "Node" + } + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4860, + "character": 19 + } + ] + }, + { + "id": 50, + "name": "getEnd", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 51, + "name": "getEnd", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4863, + "character": 14 + } + ] + }, + { + "id": 66, + "name": "getFirstToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 67, + "name": "getFirstToken", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 68, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 24, + "name": "Node" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4869, + "character": 21 + } + ] + }, + { + "id": 48, + "name": "getFullStart", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 49, + "name": "getFullStart", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4862, + "character": 20 + } + ] + }, + { + "id": 60, + "name": "getFullText", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 61, + "name": "getFullText", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 62, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4867, + "character": 19 + } + ] + }, + { + "id": 55, + "name": "getFullWidth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 56, + "name": "getFullWidth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4865, + "character": 20 + } + ] + }, + { + "id": 69, + "name": "getLastToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 70, + "name": "getLastToken", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 71, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 24, + "name": "Node" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4870, + "character": 20 + } + ] + }, + { + "id": 57, + "name": "getLeadingTriviaWidth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 58, + "name": "getLeadingTriviaWidth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 59, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4866, + "character": 29 + } + ] + }, + { + "id": 32, + "name": "getSourceFile", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 33, + "name": "getSourceFile", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4857, + "character": 21 + } + ] + }, + { + "id": 44, + "name": "getStart", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 45, + "name": "getStart", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 46, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + }, + { + "id": 47, + "name": "includeJsDocComment", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4861, + "character": 16 + } + ] + }, + { + "id": 63, + "name": "getText", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 64, + "name": "getText", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 65, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4868, + "character": 15 + } + ] + }, + { + "id": 52, + "name": "getWidth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 53, + "name": "getWidth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 54, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFileLike" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4864, + "character": 16 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 27, + 31, + 26, + 25, + 28, + 29, + 30 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 72, + 37, + 34, + 41, + 50, + 66, + 48, + 60, + 55, + 69, + 57, + 32, + 44, + 63, + 52 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 496, + "character": 25 + }, + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4856, + "character": 18 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "TextRange" + } + ] + }, + { + "id": 22, + "name": "a", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "comment": { + "shortText": "A simple named export that will be exported from export.ts\nA simple named export that will be exported from export.ts\nA simple named export that will be exported from export.ts" + }, + "sources": [ + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 4, + "character": 14 + }, + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 4, + "character": 14 + }, + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 4, + "character": 14 + } + ], + "type": { + "type": "unknown", + "name": "1" + }, + "defaultValue": "1" + }, + { + "id": 20, + "name": "default", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 21, + "name": "default", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Will not be re-exported from export.ts using export * from..." + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 14, + "character": 31 + } + ] + } + ], + "groups": [ + { + "title": "Interfaces", + "kind": 256, + "children": [ + 24 + ] + }, + { + "title": "Variables", + "kind": 32, + "children": [ + 22 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 20 + ] + } + ], + "sources": [ + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 84, + "name": "Node", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 87, + "name": "decorators", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 499, + "character": 18 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "Decorator" + } + ], + "name": "NodeArray" + } + }, + { + "id": 91, + "name": "end", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 73, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 31, + "name": "TextRange.end" + } + }, + { + "id": 86, + "name": "flags", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 498, + "character": 13 + } + ], + "type": { + "type": "reference", + "name": "NodeFlags" + } + }, + { + "id": 85, + "name": "kind", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 497, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "SyntaxKind" + } + }, + { + "id": 88, + "name": "modifiers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 500, + "character": 17 + } + ], + "type": { + "type": "reference", + "name": "ModifiersArray" + } + }, + { + "id": 89, + "name": "parent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 501, + "character": 14 + } + ], + "type": { + "type": "reference", + "id": 24, + "name": "Node" + } + }, + { + "id": 90, + "name": "pos", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 72, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 30, + "name": "TextRange.pos" + } + }, + { + "id": 132, + "name": "forEachChild", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 133, + "name": "forEachChild", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 134, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": { + "isExported": true + } + } + ], + "parameters": [ + { + "id": 135, + "name": "cbNode", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 136, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 137, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 138, + "name": "node", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 24, + "name": "Node" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4871, + "character": 31 + } + ] + } + } + }, + { + "id": 139, + "name": "cbNodeArray", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 140, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 141, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 142, + "name": "nodes", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 24, + "name": "Node" + } + ], + "name": "NodeArray" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4871, + "character": 76 + } + ] + } + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4871, + "character": 20 + } + ] + }, + { + "id": 97, + "name": "getChildAt", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 98, + "name": "getChildAt", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 99, + "name": "index", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 100, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "reference", + "id": 24, + "name": "Node" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4859, + "character": 18 + } + ] + }, + { + "id": 94, + "name": "getChildCount", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 95, + "name": "getChildCount", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 96, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4858, + "character": 21 + } + ] + }, + { + "id": 101, + "name": "getChildren", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 102, + "name": "getChildren", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 103, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 24, + "name": "Node" + } + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4860, + "character": 19 + } + ] + }, + { + "id": 110, + "name": "getEnd", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 111, + "name": "getEnd", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4863, + "character": 14 + } + ] + }, + { + "id": 126, + "name": "getFirstToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 127, + "name": "getFirstToken", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 128, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 24, + "name": "Node" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4869, + "character": 21 + } + ] + }, + { + "id": 108, + "name": "getFullStart", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 109, + "name": "getFullStart", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4862, + "character": 20 + } + ] + }, + { + "id": 120, + "name": "getFullText", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 121, + "name": "getFullText", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 122, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4867, + "character": 19 + } + ] + }, + { + "id": 115, + "name": "getFullWidth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 116, + "name": "getFullWidth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4865, + "character": 20 + } + ] + }, + { + "id": 129, + "name": "getLastToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 130, + "name": "getLastToken", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 131, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 24, + "name": "Node" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4870, + "character": 20 + } + ] + }, + { + "id": 117, + "name": "getLeadingTriviaWidth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 118, + "name": "getLeadingTriviaWidth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 119, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4866, + "character": 29 + } + ] + }, + { + "id": 92, + "name": "getSourceFile", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 93, + "name": "getSourceFile", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4857, + "character": 21 + } + ] + }, + { + "id": 104, + "name": "getStart", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 105, + "name": "getStart", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 106, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + }, + { + "id": 107, + "name": "includeJsDocComment", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4861, + "character": 16 + } + ] + }, + { + "id": 123, + "name": "getText", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 124, + "name": "getText", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 125, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4868, + "character": 15 + } + ] + }, + { + "id": 112, + "name": "getWidth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 113, + "name": "getWidth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 114, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFileLike" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4864, + "character": 16 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 87, + 91, + 86, + 85, + 88, + 89, + 90 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 132, + 97, + 94, + 101, + 110, + 126, + 108, + 120, + 115, + 129, + 117, + 92, + 104, + 123, + 112 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 496, + "character": 25 + }, + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4856, + "character": 18 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "TextRange" + } + ] + }, + { + "id": 14, + "name": "a", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "comment": { + "shortText": "A simple named export that will be exported from export.ts\nA simple named export that will be exported from export.ts\nA simple named export that will be exported from export.ts" + }, + "sources": [ + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 4, + "character": 14 + }, + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 4, + "character": 14 + }, + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 4, + "character": 14 + } + ], + "type": { + "type": "unknown", + "name": "1" + }, + "defaultValue": "1" + }, + { + "id": 15, + "name": "add", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 16, + "name": "add", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 17, + "name": "x", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 18, + "name": "y", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "dist/test/converter/exports/export.ts", + "line": 7, + "character": 12 + } + ] + }, + { + "id": 11, + "name": "default", + "kind": 64, + "kindString": "Function", + "flags": {}, + "comment": { + "shortText": "Will not be re-exported from export.ts using export * from..." + }, + "signatures": [ + { + "id": 12, + "name": "default", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Will not be re-exported from export.ts using export * from..." + }, + "parameters": [ + { + "id": 13, + "name": "a", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "dist/test/converter/exports/export.ts", + "line": 9, + "character": 1 + }, + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 14, + "character": 31 + } + ] + } + ], + "groups": [ + { + "title": "Modules", + "kind": 1, + "children": [ + 19 + ] + }, + { + "title": "Interfaces", + "kind": 256, + "children": [ + 84 + ] + }, + { + "title": "Variables", + "kind": 32, + "children": [ + 14 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 15, + 11 + ] + } + ], + "sources": [ + { + "fileName": "dist/test/converter/exports/export.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1, + "name": "\"export-assignment\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "%BASE%/exports/export-assignment.ts", + "sources": [ + { + "fileName": "dist/test/converter/exports/export-assignment.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 2, + "name": "\"export-default\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "%BASE%/exports/export-default.ts", + "children": [ + { + "id": 3, + "name": "x", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "dist/test/converter/exports/export-default.ts", + "line": 1, + "character": 7 + } + ], + "type": { + "type": "unknown", + "name": "5" + }, + "defaultValue": "5" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 3 + ] + } + ], + "sources": [ + { + "fileName": "dist/test/converter/exports/export-default.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 4, + "name": "\"export-with-local\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "%BASE%/exports/export-with-local.ts", + "children": [ + { + "id": 9, + "name": "x", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "dist/test/converter/exports/export-with-local.ts", + "line": 1, + "character": 14 + } + ], + "type": { + "type": "unknown", + "name": "5" + }, + "defaultValue": "5" + }, + { + "id": 5, + "name": "add", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 6, + "name": "add", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 7, + "name": "x", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8, + "name": "y", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "dist/test/converter/exports/export-with-local.ts", + "line": 3, + "character": 19 + } + ] + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 9 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 5 + ] + } + ], + "sources": [ + { + "fileName": "dist/test/converter/exports/export-with-local.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 143, + "name": "\"mod\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "%BASE%/exports/mod.ts", + "children": [ + { + "id": 148, + "name": "Node", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 151, + "name": "decorators", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 499, + "character": 18 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "Decorator" + } + ], + "name": "NodeArray" + } + }, + { + "id": 155, + "name": "end", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 73, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 31, + "name": "TextRange.end" + } + }, + { + "id": 150, + "name": "flags", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 498, + "character": 13 + } + ], + "type": { + "type": "reference", + "name": "NodeFlags" + } + }, + { + "id": 149, + "name": "kind", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 497, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "SyntaxKind" + } + }, + { + "id": 152, + "name": "modifiers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 500, + "character": 17 + } + ], + "type": { + "type": "reference", + "name": "ModifiersArray" + } + }, + { + "id": 153, + "name": "parent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 501, + "character": 14 + } + ], + "type": { + "type": "reference", + "id": 24, + "name": "Node" + } + }, + { + "id": 154, + "name": "pos", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 72, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 30, + "name": "TextRange.pos" + } + }, + { + "id": 196, + "name": "forEachChild", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 197, + "name": "forEachChild", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 198, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": { + "isExported": true + } + } + ], + "parameters": [ + { + "id": 199, + "name": "cbNode", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 200, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 201, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 202, + "name": "node", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 24, + "name": "Node" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4871, + "character": 31 + } + ] + } + } + }, + { + "id": 203, + "name": "cbNodeArray", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 204, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 205, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 206, + "name": "nodes", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 24, + "name": "Node" + } + ], + "name": "NodeArray" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4871, + "character": 76 + } + ] + } + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4871, + "character": 20 + } + ] + }, + { + "id": 161, + "name": "getChildAt", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 162, + "name": "getChildAt", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 163, + "name": "index", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 164, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "reference", + "id": 24, + "name": "Node" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4859, + "character": 18 + } + ] + }, + { + "id": 158, + "name": "getChildCount", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 159, + "name": "getChildCount", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 160, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4858, + "character": 21 + } + ] + }, + { + "id": 165, + "name": "getChildren", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 166, + "name": "getChildren", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 167, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 24, + "name": "Node" + } + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4860, + "character": 19 + } + ] + }, + { + "id": 174, + "name": "getEnd", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 175, + "name": "getEnd", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4863, + "character": 14 + } + ] + }, + { + "id": 190, + "name": "getFirstToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 191, + "name": "getFirstToken", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 192, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 24, + "name": "Node" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4869, + "character": 21 + } + ] + }, + { + "id": 172, + "name": "getFullStart", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 173, + "name": "getFullStart", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4862, + "character": 20 + } + ] + }, + { + "id": 184, + "name": "getFullText", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 185, + "name": "getFullText", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 186, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4867, + "character": 19 + } + ] + }, + { + "id": 179, + "name": "getFullWidth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 180, + "name": "getFullWidth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4865, + "character": 20 + } + ] + }, + { + "id": 193, + "name": "getLastToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 194, + "name": "getLastToken", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 195, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 24, + "name": "Node" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4870, + "character": 20 + } + ] + }, + { + "id": 181, + "name": "getLeadingTriviaWidth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 182, + "name": "getLeadingTriviaWidth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 183, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4866, + "character": 29 + } + ] + }, + { + "id": 156, + "name": "getSourceFile", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 157, + "name": "getSourceFile", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4857, + "character": 21 + } + ] + }, + { + "id": 168, + "name": "getStart", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 169, + "name": "getStart", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 170, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + }, + { + "id": 171, + "name": "includeJsDocComment", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4861, + "character": 16 + } + ] + }, + { + "id": 187, + "name": "getText", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 188, + "name": "getText", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 189, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFile" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4868, + "character": 15 + } + ] + }, + { + "id": 176, + "name": "getWidth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 177, + "name": "getWidth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 178, + "name": "sourceFile", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "name": "SourceFileLike" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4864, + "character": 16 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 151, + 155, + 150, + 149, + 152, + 153, + 154 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 196, + 161, + 158, + 165, + 174, + 190, + 172, + 184, + 179, + 193, + 181, + 156, + 168, + 187, + 176 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 496, + "character": 25 + }, + { + "fileName": "node_modules/typescript/lib/typescript.d.ts", + "line": 4856, + "character": 18 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "TextRange" + } + ] + }, + { + "id": 146, + "name": "a", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "comment": { + "shortText": "A simple named export that will be exported from export.ts\nA simple named export that will be exported from export.ts\nA simple named export that will be exported from export.ts" + }, + "sources": [ + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 4, + "character": 14 + }, + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 4, + "character": 14 + }, + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 4, + "character": 14 + } + ], + "type": { + "type": "unknown", + "name": "1" + }, + "defaultValue": "1" + }, + { + "id": 144, + "name": "default", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 145, + "name": "default", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Will not be re-exported from export.ts using export * from..." + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 14, + "character": 31 + } + ] + } + ], + "groups": [ + { + "title": "Interfaces", + "kind": 256, + "children": [ + 148 + ] + }, + { + "title": "Variables", + "kind": 32, + "children": [ + 146 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 144 + ] + } + ], + "sources": [ + { + "fileName": "dist/test/converter/exports/mod.ts", + "line": 1, + "character": 0 + } + ] + } + ], + "groups": [ + { + "title": "Modules", + "kind": 1, + "children": [ + 10, + 1, + 2, + 4, + 143 + ] + } + ] +} \ No newline at end of file diff --git a/src/test/converter/function/specs.json b/src/test/converter/function/specs.json index 352b4ac82..ddb1a8a0a 100644 --- a/src/test/converter/function/specs.json +++ b/src/test/converter/function/specs.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"function\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -18,7 +18,7 @@ "id": 35, "name": "moduleFunction", "kind": 2, - "kindString": "Module", + "kindString": "Namespace", "flags": { "isExported": true }, @@ -1052,7 +1052,7 @@ ], "groups": [ { - "title": "Modules", + "title": "Namespaces", "kind": 2, "children": [ 35 @@ -1089,7 +1089,7 @@ "id": 57, "name": "\"generic-function\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1265,7 +1265,7 @@ "id": 67, "name": "\"implicit-types\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1676,7 +1676,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1, diff --git a/src/test/converter/interface/specs.json b/src/test/converter/interface/specs.json index 61fb7191f..a2b5d9147 100644 --- a/src/test/converter/interface/specs.json +++ b/src/test/converter/interface/specs.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"constructor-type\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -210,7 +210,7 @@ "id": 14, "name": "\"interface-empty\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -360,7 +360,7 @@ "id": 20, "name": "\"interface-implementation\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -370,7 +370,7 @@ "id": 21, "name": "Forms", "kind": 2, - "kindString": "Module", + "kindString": "Namespace", "flags": {}, "children": [ { @@ -1607,7 +1607,7 @@ ], "groups": [ { - "title": "Modules", + "title": "Namespaces", "kind": 2, "children": [ 21 @@ -1625,7 +1625,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1, diff --git a/src/test/converter/mixin/specs.json b/src/test/converter/mixin/specs.json index 421e060f8..406504a54 100644 --- a/src/test/converter/mixin/specs.json +++ b/src/test/converter/mixin/specs.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"mixin\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -1687,7 +1687,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1 diff --git a/src/test/converter/react/specs.json b/src/test/converter/react/specs.json index d20d42793..a5ba4a925 100644 --- a/src/test/converter/react/specs.json +++ b/src/test/converter/react/specs.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"react\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -279,7 +279,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1 diff --git a/src/test/converter/types/specs.json b/src/test/converter/types/specs.json index c21f00d8e..ab4e5d3f4 100644 --- a/src/test/converter/types/specs.json +++ b/src/test/converter/types/specs.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"query\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -89,7 +89,7 @@ "id": 4, "name": "\"union-or-intersection\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -373,7 +373,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1, diff --git a/src/test/converter/variables/specs.json b/src/test/converter/variables/specs.json index 2a03592cc..238676526 100644 --- a/src/test/converter/variables/specs.json +++ b/src/test/converter/variables/specs.json @@ -8,7 +8,7 @@ "id": 1, "name": "\"array\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -4570,7 +4570,7 @@ "id": 234, "name": "\"destructuring\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -4977,7 +4977,7 @@ "id": 253, "name": "\"literal\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -6034,7 +6034,7 @@ "id": 310, "name": "\"variable\"", "kind": 1, - "kindString": "External module", + "kindString": "Module", "flags": { "isExported": true }, @@ -6203,7 +6203,7 @@ ], "groups": [ { - "title": "External modules", + "title": "Modules", "kind": 1, "children": [ 1, diff --git a/src/test/renderer/specs/classes/_access_.privateclass.html b/src/test/renderer/specs/classes/_access_.privateclass.html index 02924520d..6c2a46487 100644 --- a/src/test/renderer/specs/classes/_access_.privateclass.html +++ b/src/test/renderer/specs/classes/_access_.privateclass.html @@ -192,48 +192,48 @@

Returns void Globals -
  • +
  • "access"
  • -
  • +
  • "classes"
  • -
  • +
  • "default-export"
  • -
  • +
  • "enumerations"
  • -
  • +
  • "flattened"
  • -
  • +
  • "functions"
  • -
  • +
  • "generics"
  • -
  • +
  • "mixin"
  • -
  • +
  • "mod"
  • -
  • +
  • "mod2"
  • -
  • +
  • "modules"
  • -
  • +
  • "single-export"
  • -
  • +
  • "weird-names"
  • @@ -242,7 +242,7 @@

    Returns void @@ -532,7 +532,7 @@

    Returns string